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

Added title and desc

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. requirements.txt +0 -1
app.py CHANGED
@@ -24,11 +24,14 @@ def search(query):
24
  download_url = f"https://drive.google.com/uc?id={shorts[0]['link'].split('/')[-2]}"
25
  video_path = gdown.download(download_url, output=f"./video.mp4")
26
 
27
- # video_player.value = video_path
28
- print(video_path)
29
  return video_path, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])
30
 
 
 
 
31
  iface = gr.Interface(fn=search,
32
  inputs="text",
33
- outputs=["playable_video", "text"])
 
 
34
  iface.launch()
 
24
  download_url = f"https://drive.google.com/uc?id={shorts[0]['link'].split('/')[-2]}"
25
  video_path = gdown.download(download_url, output=f"./video.mp4")
26
 
 
 
27
  return video_path, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])
28
 
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()
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
- gradio==4.26.0
2
  gdown
3
  weaviate-client
 
 
1
  gdown
2
  weaviate-client