Spaces:
Sleeping
Sleeping
Fix
Browse files
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
|
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])
|