Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,8 +312,12 @@ def create_3d_viz():
|
|
| 312 |
# --- MAIN APP ---
|
| 313 |
|
| 314 |
def create_app():
|
| 315 |
-
# Create Blocks
|
| 316 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
|
| 318 |
# 1. HERO SECTION
|
| 319 |
with gr.Row():
|
|
@@ -501,13 +505,8 @@ ModuleNotFoundError: No module named 'gradio'""", None
|
|
| 501 |
if __name__ == "__main__":
|
| 502 |
demo = create_app()
|
| 503 |
|
| 504 |
-
#
|
| 505 |
demo.launch(
|
| 506 |
server_name="0.0.0.0",
|
| 507 |
-
server_port=7860
|
| 508 |
-
theme=gr.themes.Soft(
|
| 509 |
-
primary_hue="indigo",
|
| 510 |
-
neutral_hue="slate"
|
| 511 |
-
),
|
| 512 |
-
css=HACKATHON_CSS
|
| 513 |
)
|
|
|
|
| 312 |
# --- MAIN APP ---
|
| 313 |
|
| 314 |
def create_app():
|
| 315 |
+
# Create Blocks with theme and css (they should be here in Gradio 6)
|
| 316 |
+
with gr.Blocks(
|
| 317 |
+
title="DebugGenie 🧞",
|
| 318 |
+
theme=gr.themes.Soft(primary_hue="indigo", neutral_hue="slate"),
|
| 319 |
+
css=HACKATHON_CSS
|
| 320 |
+
) as demo:
|
| 321 |
|
| 322 |
# 1. HERO SECTION
|
| 323 |
with gr.Row():
|
|
|
|
| 505 |
if __name__ == "__main__":
|
| 506 |
demo = create_app()
|
| 507 |
|
| 508 |
+
# Simple launch without theme/css (already in Blocks constructor)
|
| 509 |
demo.launch(
|
| 510 |
server_name="0.0.0.0",
|
| 511 |
+
server_port=7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 512 |
)
|