Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,11 +96,9 @@ with gr.Blocks() as demo:
|
|
| 96 |
return
|
| 97 |
global gradio_backend
|
| 98 |
if gradio_backend is None:
|
| 99 |
-
yield '(ZeroGPU needs to initialize model under @spaces.GPU, thanks for waiting...)', state, dynamic_trigger
|
| 100 |
gradio_backend = GradioBackend()
|
| 101 |
-
|
| 102 |
-
waiting_prompt = 'Loading video now... thanks for waiting...'
|
| 103 |
-
yield history + [gr.ChatMessage(role="assistant", content=waiting_prompt)], state, dynamic_trigger
|
| 104 |
if not js_monitor:
|
| 105 |
video_state['video_timestamp'] = 19260817 # 👓
|
| 106 |
state.update(video_state)
|
|
|
|
| 96 |
return
|
| 97 |
global gradio_backend
|
| 98 |
if gradio_backend is None:
|
| 99 |
+
yield history + [gr.ChatMessage(role="assistant", content='(ZeroGPU needs to initialize model under @spaces.GPU, thanks for waiting...)')] , state, dynamic_trigger
|
| 100 |
gradio_backend = GradioBackend()
|
| 101 |
+
yield history + [gr.ChatMessage(role="assistant", content='Loading video now... thanks for waiting...')], state, dynamic_trigger
|
|
|
|
|
|
|
| 102 |
if not js_monitor:
|
| 103 |
video_state['video_timestamp'] = 19260817 # 👓
|
| 104 |
state.update(video_state)
|