hanszhu commited on
Commit
78f9307
·
1 Parent(s): 96e4232

fix(runtime): disable Gradio SSR and increase keep-alive for Docker Space stability

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -846,7 +846,9 @@ if __name__ == "__main__":
846
  "share": False, # Set to True if you want a public link
847
  "show_error": True, # Show detailed errors for debugging
848
  "quiet": False, # Show startup messages
849
- "show_api": True # Enable API documentation
 
 
850
  }
851
 
852
  # Enable queue for gradio_client compatibility
 
846
  "share": False, # Set to True if you want a public link
847
  "show_error": True, # Show detailed errors for debugging
848
  "quiet": False, # Show startup messages
849
+ "show_api": True, # Enable API documentation
850
+ "ssr_mode": False, # Disable experimental SSR in Docker env
851
+ "server_kwargs": {"timeout_keep_alive": 120}
852
  }
853
 
854
  # Enable queue for gradio_client compatibility