azamat commited on
Commit
dd15546
·
1 Parent(s): 4f00023
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from weaviate_explorer import WeaviateExplorer
4
  weaviate_explorer = WeaviateExplorer()
5
  video_player = gr.Video(label="Search Results")
6
 
7
- def search(query, video_player):
8
  shorts = weaviate_explorer.explore(query)
9
  video_player.value = shorts[0]["link"]
10
  return video_player, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])
 
4
  weaviate_explorer = WeaviateExplorer()
5
  video_player = gr.Video(label="Search Results")
6
 
7
+ def search(query):
8
  shorts = weaviate_explorer.explore(query)
9
  video_player.value = shorts[0]["link"]
10
  return video_player, "\n\n".join([f"{r['title']}\n{r['link']}" for r in shorts])