Spaces:
Running
Running
Commit
·
9724def
1
Parent(s):
d3e5bcd
Update app.py
Browse files
app.py
CHANGED
@@ -47,15 +47,15 @@ def execute_pipeline(url: str) -> str:
|
|
47 |
|
48 |
def main() -> None:
|
49 |
"""Generates the Gradio interface."""
|
50 |
-
with gr.Blocks(analytics_enabled=True, title="
|
51 |
-
gr.HTML('<h2 style="text-align:center"><span style="font-size:36px"
|
52 |
-
url = gr.Textbox(label="
|
53 |
title = gr.Markdown()
|
54 |
-
output = gr.Textbox(label="
|
55 |
-
summarize_btn = gr.Button("
|
56 |
summarize_btn.click(fn=get_title, inputs=url, outputs=title)
|
57 |
summarize_btn.click(fn=execute_pipeline, inputs=url, outputs=output)
|
58 |
-
gr.Markdown("
|
59 |
page.launch()
|
60 |
|
61 |
|
|
|
47 |
|
48 |
def main() -> None:
|
49 |
"""Generates the Gradio interface."""
|
50 |
+
with gr.Blocks(analytics_enabled=True, title="یک ویدیو را خلاصه کنید") as page:
|
51 |
+
gr.HTML('<h2 style="text-align:center"><span style="font-size:36px">خلاصه گر <strong>یوتیوب</strong> ویدیو</span></h2>')
|
52 |
+
url = gr.Textbox(label="لینک صفحه ویدیو در یوتیوب را وارد کنید:")
|
53 |
title = gr.Markdown()
|
54 |
+
output = gr.Textbox(label="خلاصه")
|
55 |
+
summarize_btn = gr.Button("برو!").style(full_width=False)
|
56 |
summarize_btn.click(fn=get_title, inputs=url, outputs=title)
|
57 |
summarize_btn.click(fn=execute_pipeline, inputs=url, outputs=output)
|
58 |
+
gr.Markdown("*با ویدیوهای کمتر از 10 دقیقه بهترین عملکرد را دارد. معمولا 2-3 دقیقه طول می کشد تا اجرا شود.*")
|
59 |
page.launch()
|
60 |
|
61 |
|