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