JatinkInnovision commited on
Commit
de6ebf0
·
verified ·
1 Parent(s): 196515f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,7 +157,7 @@ setInterval(function() {
157
  # --- REPLACE EVERYTHING FROM HERE TO THE END OF YOUR FILE ---
158
 
159
  # THEME FIX: Theme belongs here in Blocks, not in launch()
160
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
161
  gr.HTML(combined_js)
162
  session_tracker = gr.State(value="active", delete_callback=user_left)
163
 
@@ -209,8 +209,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
209
  demo.load(fn=get_current_status, outputs=[live_status, user_display, link_box])
210
 
211
  if __name__ == "__main__":
212
- # HF SPACEC FIX: Bind to container defaults and disable faulty SSR network check
213
  demo.launch(
 
214
  server_name="0.0.0.0",
215
  server_port=7860,
216
  ssr_mode=False
 
157
  # --- REPLACE EVERYTHING FROM HERE TO THE END OF YOUR FILE ---
158
 
159
  # THEME FIX: Theme belongs here in Blocks, not in launch()
160
+ with gr.Blocks() as demo:
161
  gr.HTML(combined_js)
162
  session_tracker = gr.State(value="active", delete_callback=user_left)
163
 
 
209
  demo.load(fn=get_current_status, outputs=[live_status, user_display, link_box])
210
 
211
  if __name__ == "__main__":
 
212
  demo.launch(
213
+ theme=gr.themes.Soft(),
214
  server_name="0.0.0.0",
215
  server_port=7860,
216
  ssr_mode=False