Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def process_video(video_file, progress=gr.Progress()):
|
|
| 38 |
frames_view.add_embedding_index('frame', string_embed=str_embed, image_embed=embed_image)
|
| 39 |
|
| 40 |
progress(1.0, desc="Processing complete")
|
| 41 |
-
return "
|
| 42 |
|
| 43 |
# Perform similarity search
|
| 44 |
def similarity_search(query, search_type, num_results, progress=gr.Progress()):
|
|
@@ -67,6 +67,14 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
| 67 |
</div>
|
| 68 |
"""
|
| 69 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
with gr.Row():
|
| 72 |
with gr.Column(scale=1):
|
|
|
|
| 38 |
frames_view.add_embedding_index('frame', string_embed=str_embed, image_embed=embed_image)
|
| 39 |
|
| 40 |
progress(1.0, desc="Processing complete")
|
| 41 |
+
return "Good news! Your video has been processed. Easily find the moments you need by searching with text or images."
|
| 42 |
|
| 43 |
# Perform similarity search
|
| 44 |
def similarity_search(query, search_type, num_results, progress=gr.Progress()):
|
|
|
|
| 67 |
</div>
|
| 68 |
"""
|
| 69 |
)
|
| 70 |
+
gr.HTML(
|
| 71 |
+
"""
|
| 72 |
+
<p>
|
| 73 |
+
<a href="https://github.com/pixeltable/pixeltable" target="_blank" style="color: #F25022; text-decoration: none; font-weight: bold;">Pixeltable</a> is a declarative interface for working with text, images, embeddings, and even video, enabling you to store, transform, index, and iterate on data.
|
| 74 |
+
</p>
|
| 75 |
+
"""
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
|
| 79 |
with gr.Row():
|
| 80 |
with gr.Column(scale=1):
|