multimodalart HF Staff commited on
Commit
cad8420
·
verified ·
1 Parent(s): 6e33538

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,7 +193,7 @@ def create_gpu_game_loop(command_queue: Queue, initial_seed_image=None, initial_
193
  while True:
194
  try:
195
  # Non-blocking get with short timeout for responsiveness
196
- command = command_queue.get(timeout=0.01)
197
  except:
198
  # No command, continue idle
199
  command = None
@@ -1039,7 +1039,7 @@ def create_app():
1039
  prompt_input.change(fn=on_prompt_change, inputs=[prompt_input], outputs=[current_prompt])
1040
 
1041
  # Timer for continuous generation
1042
- timer = gr.Timer(value=1/15) # 15 FPS target
1043
  timer.tick(
1044
  fn=on_generate_tick,
1045
  inputs=[session_state, current_controls, current_prompt, latest_frame, latest_frame_count],
 
193
  while True:
194
  try:
195
  # Non-blocking get with short timeout for responsiveness
196
+ command = command_queue.get(timeout=0.005)
197
  except:
198
  # No command, continue idle
199
  command = None
 
1039
  prompt_input.change(fn=on_prompt_change, inputs=[prompt_input], outputs=[current_prompt])
1040
 
1041
  # Timer for continuous generation
1042
+ timer = gr.Timer(value=1/30) # 15 FPS target
1043
  timer.tick(
1044
  fn=on_generate_tick,
1045
  inputs=[session_state, current_controls, current_prompt, latest_frame, latest_frame_count],