Spaces:
Sleeping
Sleeping
Commit
·
ab65f1a
1
Parent(s):
133c124
Fix: CSS und theme in launch() statt Blocks() - Gradio 6.0 API
Browse files
app.py
CHANGED
|
@@ -239,7 +239,7 @@ def create_initial_scene():
|
|
| 239 |
|
| 240 |
|
| 241 |
# Gradio Interface
|
| 242 |
-
with gr.Blocks(
|
| 243 |
|
| 244 |
# State fuer Render
|
| 245 |
render_state = gr.State(value=None)
|
|
@@ -299,4 +299,10 @@ with gr.Blocks(css=GLASS_CSS, theme=gr.themes.Glass(), title="BPY Chat") as demo
|
|
| 299 |
|
| 300 |
|
| 301 |
if __name__ == "__main__":
|
| 302 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
|
| 240 |
|
| 241 |
# Gradio Interface
|
| 242 |
+
with gr.Blocks(title="BPY Chat") as demo:
|
| 243 |
|
| 244 |
# State fuer Render
|
| 245 |
render_state = gr.State(value=None)
|
|
|
|
| 299 |
|
| 300 |
|
| 301 |
if __name__ == "__main__":
|
| 302 |
+
demo.launch(
|
| 303 |
+
server_name="0.0.0.0",
|
| 304 |
+
server_port=7860,
|
| 305 |
+
mcp_server=True,
|
| 306 |
+
theme=gr.themes.Glass(),
|
| 307 |
+
css=GLASS_CSS
|
| 308 |
+
)
|