Spaces:
Sleeping
Sleeping
Add self-explanatory fields
Browse files
app.py
CHANGED
@@ -29,9 +29,13 @@ def search(query):
|
|
29 |
title = "Slideo Explorer: Your AI-based short video search engine"
|
30 |
description = "Write down a search query, question or a topic and receive top-5 most relevant short video-answers. The most relevant clip will be displayed in the widget and the whole list will be available in another widget as a list of titles, links to Google Drive."
|
31 |
|
|
|
|
|
|
|
|
|
32 |
iface = gr.Interface(fn=search,
|
33 |
-
inputs=
|
34 |
-
outputs=["playable_video",
|
35 |
title=title,
|
36 |
description=description)
|
37 |
iface.launch()
|
|
|
29 |
title = "Slideo Explorer: Your AI-based short video search engine"
|
30 |
description = "Write down a search query, question or a topic and receive top-5 most relevant short video-answers. The most relevant clip will be displayed in the widget and the whole list will be available in another widget as a list of titles, links to Google Drive."
|
31 |
|
32 |
+
input_text = gr.Textbox(placeholder = "Your query, question, topic, ...", label = "Query")
|
33 |
+
|
34 |
+
output_text = gr.Textbox(label = "Relevant clips")
|
35 |
+
|
36 |
iface = gr.Interface(fn=search,
|
37 |
+
inputs=input_text,
|
38 |
+
outputs=["playable_video", output_text],
|
39 |
title=title,
|
40 |
description=description)
|
41 |
iface.launch()
|