chenjoya commited on
Commit
564adc1
·
verified ·
1 Parent(s): 480fad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- yield '(finished initialization, responding...)', state, dynamic_trigger
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)