Spaces:
Runtime error
Runtime error
yiyixuxu
commited on
Commit
•
46170b6
1
Parent(s):
eefdeb6
disable av01 decoder
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def select_video_format(url, format_note='480p', ext='mp4'):
|
|
25 |
available_format_notes = set([f['format_note'] for f in formats])
|
26 |
if format_note not in available_format_notes:
|
27 |
format_note = [d for d in defaults if d in available_format_notes][0]
|
28 |
-
formats = [f for f in formats if f['format_note'] == format_note and f['ext'] == ext]
|
29 |
format = formats[0]
|
30 |
format_id = format.get('format_id', None)
|
31 |
fps = format.get('fps', None)
|
@@ -169,7 +169,8 @@ gr.Interface(
|
|
169 |
description='A CLIP-based app that search video frame based on text',
|
170 |
examples=[
|
171 |
['https://youtu.be/v1rkzUIL8oc', 1, "James Cagney dancing down the stairs"],
|
172 |
-
['https://youtu.be/k4R5wZs8cxI', 1, "James Cagney smashes a grapefruit into Mae Clarke's face"]
|
|
|
173 |
]
|
174 |
).launch(debug=True,enable_queue=True)
|
175 |
|
|
|
25 |
available_format_notes = set([f['format_note'] for f in formats])
|
26 |
if format_note not in available_format_notes:
|
27 |
format_note = [d for d in defaults if d in available_format_notes][0]
|
28 |
+
formats = [f for f in formats if f['format_note'] == format_note and f['ext'] == ext and f['vcodec'].split('.')[0] != 'av01']
|
29 |
format = formats[0]
|
30 |
format_id = format.get('format_id', None)
|
31 |
fps = format.get('fps', None)
|
|
|
169 |
description='A CLIP-based app that search video frame based on text',
|
170 |
examples=[
|
171 |
['https://youtu.be/v1rkzUIL8oc', 1, "James Cagney dancing down the stairs"],
|
172 |
+
['https://youtu.be/k4R5wZs8cxI', 1, "James Cagney smashes a grapefruit into Mae Clarke's face"],
|
173 |
+
['https://youtu.be/0diCvgWv_ng', 1, "little Deborah practicing her ballet while wearing a tutu in empty restaurant"]
|
174 |
]
|
175 |
).launch(debug=True,enable_queue=True)
|
176 |
|