Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,10 @@ def generate(video_url, question):
|
|
87 |
return response["answer"]
|
88 |
#======================================
|
89 |
|
|
|
|
|
|
|
|
|
90 |
title = "YouTube Summorize (only english video < 15 min)"
|
91 |
demo = gr.Interface(fn=generate, css=".gradio-container {background-color: lightblue}",
|
92 |
inputs=[
|
@@ -94,5 +98,5 @@ demo = gr.Interface(fn=generate, css=".gradio-container {background-color: light
|
|
94 |
gr.Textbox(lines=1, label="Question", value="What is this video about?"),
|
95 |
],
|
96 |
outputs=[gr.Textbox(lines=4, label="Ответ:")],
|
97 |
-
title = title)
|
98 |
demo.launch(share=False, debug=True)
|
|
|
87 |
return response["answer"]
|
88 |
#======================================
|
89 |
|
90 |
+
examples = [['https://www.youtube.com/watch?v=u_P8md6brDI'],
|
91 |
+
['https://www.youtube.com/watch?v=ao_OZ_bzMP8']
|
92 |
+
]
|
93 |
+
|
94 |
title = "YouTube Summorize (only english video < 15 min)"
|
95 |
demo = gr.Interface(fn=generate, css=".gradio-container {background-color: lightblue}",
|
96 |
inputs=[
|
|
|
98 |
gr.Textbox(lines=1, label="Question", value="What is this video about?"),
|
99 |
],
|
100 |
outputs=[gr.Textbox(lines=4, label="Ответ:")],
|
101 |
+
title = title, examples = examples)
|
102 |
demo.launch(share=False, debug=True)
|