Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
| 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/
|
| 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],
|