azamat commited on
Commit
e543cb3
·
1 Parent(s): 9d5a5b5

Add video download

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -24,6 +24,7 @@ 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=downloads_dir)
26
  video_player.value = video_path
 
27
  return video_player, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])
28
 
29
  iface = gr.Interface(fn=search,
 
24
  download_url = f"https://drive.google.com/uc?id={shorts[0]['link'].split('/')[-2]}"
25
  video_path = gdown.download(download_url, output=downloads_dir)
26
  video_player.value = video_path
27
+ print(video_path)
28
  return video_player, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])
29
 
30
  iface = gr.Interface(fn=search,