azamat commited on
Commit
617b57b
·
1 Parent(s): f06e255

Add self-explanatory fields

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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="text",
34
- outputs=["playable_video", "text"],
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()