jin2li commited on
Commit
04fa42c
ยท
verified ยท
1 Parent(s): 3263863

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -5556,7 +5556,7 @@ def get_country_section_index_cached(country):
5556
  return list(sections or []) + extra_sections, status
5557
 
5558
 
5559
- with gr.Blocks() as demo:
5560
  current_user = gr.State({})
5561
  gr.Markdown("# ๐ŸŒ reBom")
5562
  gr.HTML("""
@@ -5694,20 +5694,16 @@ try:
5694
  server_name="0.0.0.0",
5695
  server_port=7860,
5696
  share=False,
5697
- ssr_mode=False,
5698
- css=custom_css,
5699
  allowed_paths=ALLOWED_PATHS,
5700
  blocked_paths=BLOCKED_PATHS,
5701
  )
5702
  except TypeError:
5703
  # Gradio/HuggingFace ๋Ÿฐํƒ€์ž„ ๋ฒ„์ „ ์ฐจ์ด ๋Œ€์‘.
5704
- # Gradio 6์—์„œ๋Š” SSR ๊ธฐ๋ณธ๊ฐ’ ๋•Œ๋ฌธ์— ํ™”๋ฉด ๋กœ๋”ฉ์ด ๊ผฌ์ผ ์ˆ˜ ์žˆ์–ด fallback์—๋„ ssr_mode=False๋ฅผ ์œ ์ง€ํ•œ๋‹ค.
5705
  demo.launch(
5706
  auth=auth_fn,
5707
  server_name="0.0.0.0",
5708
  server_port=7860,
5709
  share=False,
5710
- ssr_mode=False,
5711
  allowed_paths=ALLOWED_PATHS,
5712
  blocked_paths=BLOCKED_PATHS,
5713
  )
 
5556
  return list(sections or []) + extra_sections, status
5557
 
5558
 
5559
+ with gr.Blocks(css=custom_css) as demo:
5560
  current_user = gr.State({})
5561
  gr.Markdown("# ๐ŸŒ reBom")
5562
  gr.HTML("""
 
5694
  server_name="0.0.0.0",
5695
  server_port=7860,
5696
  share=False,
 
 
5697
  allowed_paths=ALLOWED_PATHS,
5698
  blocked_paths=BLOCKED_PATHS,
5699
  )
5700
  except TypeError:
5701
  # Gradio/HuggingFace ๋Ÿฐํƒ€์ž„ ๋ฒ„์ „ ์ฐจ์ด ๋Œ€์‘.
 
5702
  demo.launch(
5703
  auth=auth_fn,
5704
  server_name="0.0.0.0",
5705
  server_port=7860,
5706
  share=False,
 
5707
  allowed_paths=ALLOWED_PATHS,
5708
  blocked_paths=BLOCKED_PATHS,
5709
  )