mfarre HF staff commited on
Commit
9c83cd8
·
1 Parent(s): 21888ca
Files changed (1) hide show
  1. app.py +2 -2
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
- return [
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
- return [
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,