Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,8 @@ def stream_chat(message, history):
|
|
| 47 |
partial_text += new_text
|
| 48 |
yield partial_text
|
| 49 |
|
| 50 |
-
#
|
| 51 |
-
with gr.Blocks(
|
| 52 |
gr.ChatInterface(
|
| 53 |
fn=stream_chat,
|
| 54 |
title="QWEN3-0.6B HERETIC MAX",
|
|
@@ -56,4 +56,5 @@ with gr.Blocks(theme="soft") as demo:
|
|
| 56 |
)
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
| 59 |
-
|
|
|
|
|
|
| 47 |
partial_text += new_text
|
| 48 |
yield partial_text
|
| 49 |
|
| 50 |
+
# Removed theme="soft" from here to fix the UserWarning
|
| 51 |
+
with gr.Blocks() as demo:
|
| 52 |
gr.ChatInterface(
|
| 53 |
fn=stream_chat,
|
| 54 |
title="QWEN3-0.6B HERETIC MAX",
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
| 59 |
+
# Move theme="soft" here to follow the new Gradio 6.0 requirements
|
| 60 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, theme="soft")
|