Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
c3223c8
1
Parent(s):
c6abcb0
Update app.py
Browse files
app.py
CHANGED
@@ -87,9 +87,10 @@ def inference(video, text):
|
|
87 |
return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
|
88 |
|
89 |
title = "Video Search"
|
90 |
-
description = "demo for
|
91 |
-
article = "<p style='text-align: center'><a href='https://
|
92 |
|
|
|
93 |
gr.Interface(
|
94 |
inference,
|
95 |
["video","text"],
|
@@ -97,7 +98,8 @@ gr.Interface(
|
|
97 |
title=title,
|
98 |
description=description,
|
99 |
article=article,
|
100 |
-
enable_queue=True
|
|
|
101 |
).launch(debug=True)
|
102 |
|
103 |
|
|
|
87 |
return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
|
88 |
|
89 |
title = "Video Search"
|
90 |
+
description = "Gradio demo for using OpenAI's CLIP to search inside videos. To use it, simply upload your video and add your text, or click one of the examples to load them. Read more at the links below."
|
91 |
+
article = "<p style='text-align: center'><a href='https://github.com/haltakov/natural-language-youtube-search'>Github Repo</a></p>"
|
92 |
|
93 |
+
examples=[['test.mp4','car']]
|
94 |
gr.Interface(
|
95 |
inference,
|
96 |
["video","text"],
|
|
|
98 |
title=title,
|
99 |
description=description,
|
100 |
article=article,
|
101 |
+
enable_queue=True,
|
102 |
+
examples=examples
|
103 |
).launch(debug=True)
|
104 |
|
105 |
|