Spaces:
Running
Running
Yufan_Zhou commited on
Commit ·
d5460be
1
Parent(s): f0a8f5d
Fix Hugging Face deployment: disable SSR mode and change server to 0.0.0.0
Browse files
app.py
CHANGED
|
@@ -364,7 +364,8 @@ div[class*="gr-box"],
|
|
| 364 |
with gr.Blocks(
|
| 365 |
css=custom_css,
|
| 366 |
title="DeepPersona - AI Character Generator",
|
| 367 |
-
theme=gr.themes.Default(primary_hue="purple", secondary_hue="blue")
|
|
|
|
| 368 |
) as demo:
|
| 369 |
# Header
|
| 370 |
gr.Markdown("<h1 class='header-text'>🎭 DeepPersona</h1>")
|
|
@@ -485,4 +486,4 @@ with gr.Blocks(
|
|
| 485 |
|
| 486 |
# Launch application
|
| 487 |
if __name__ == "__main__":
|
| 488 |
-
demo.launch(
|
|
|
|
| 364 |
with gr.Blocks(
|
| 365 |
css=custom_css,
|
| 366 |
title="DeepPersona - AI Character Generator",
|
| 367 |
+
theme=gr.themes.Default(primary_hue="purple", secondary_hue="blue"),
|
| 368 |
+
ssr_mode=False
|
| 369 |
) as demo:
|
| 370 |
# Header
|
| 371 |
gr.Markdown("<h1 class='header-text'>🎭 DeepPersona</h1>")
|
|
|
|
| 486 |
|
| 487 |
# Launch application
|
| 488 |
if __name__ == "__main__":
|
| 489 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|