Spaces:
Build error
Build error
Miquel Farre
commited on
Commit
·
9c83cd8
1
Parent(s):
21888ca
fixes
Browse files
app.py
CHANGED
|
@@ -340,7 +340,7 @@ def create_ui(examples_path: str, model_path: str):
|
|
| 340 |
f.write(playlist_content)
|
| 341 |
playlist_path = f.name
|
| 342 |
|
| 343 |
-
|
| 344 |
gr.update(value=playlist_path, visible=True),
|
| 345 |
"Processing complete! You can download the playlist.",
|
| 346 |
formatted_desc,
|
|
@@ -348,7 +348,7 @@ def create_ui(examples_path: str, model_path: str):
|
|
| 348 |
gr.update(visible=True)
|
| 349 |
]
|
| 350 |
else:
|
| 351 |
-
|
| 352 |
None,
|
| 353 |
"No highlights detected in the video.",
|
| 354 |
formatted_desc,
|
|
|
|
| 340 |
f.write(playlist_content)
|
| 341 |
playlist_path = f.name
|
| 342 |
|
| 343 |
+
yield [
|
| 344 |
gr.update(value=playlist_path, visible=True),
|
| 345 |
"Processing complete! You can download the playlist.",
|
| 346 |
formatted_desc,
|
|
|
|
| 348 |
gr.update(visible=True)
|
| 349 |
]
|
| 350 |
else:
|
| 351 |
+
yield [
|
| 352 |
None,
|
| 353 |
"No highlights detected in the video.",
|
| 354 |
formatted_desc,
|