Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 5560 |
current_user = gr.State({})
|
| 5561 |
gr.Markdown("# 🌍 reBom")
|
| 5562 |
gr.HTML("""
|
|
@@ -5691,8 +5691,25 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 5691 |
try:
|
| 5692 |
demo.launch(
|
| 5693 |
auth=auth_fn,
|
| 5694 |
-
server_name="0.0.0.0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5695 |
except TypeError:
|
|
|
|
|
|
|
| 5696 |
demo.launch(
|
| 5697 |
auth=auth_fn,
|
| 5698 |
-
server_name="0.0.0.0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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("""
|
|
|
|
| 5691 |
try:
|
| 5692 |
demo.launch(
|
| 5693 |
auth=auth_fn,
|
| 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 |
+
show_api=False,
|
| 5702 |
+
)
|
| 5703 |
except TypeError:
|
| 5704 |
+
# Gradio/HuggingFace 런타임 버전 차이 대응.
|
| 5705 |
+
# Gradio 6에서는 SSR 기본값 때문에 화면 로딩이 꼬일 수 있어 fallback에도 ssr_mode=False를 유지한다.
|
| 5706 |
demo.launch(
|
| 5707 |
auth=auth_fn,
|
| 5708 |
+
server_name="0.0.0.0",
|
| 5709 |
+
server_port=7860,
|
| 5710 |
+
share=False,
|
| 5711 |
+
ssr_mode=False,
|
| 5712 |
+
allowed_paths=ALLOWED_PATHS,
|
| 5713 |
+
blocked_paths=BLOCKED_PATHS,
|
| 5714 |
+
show_api=False,
|
| 5715 |
+
)
|