shuarya2011 commited on
Commit
6d39b27
·
verified ·
1 Parent(s): d2a3695

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -47,8 +47,8 @@ def stream_chat(message, history):
47
  partial_text += new_text
48
  yield partial_text
49
 
50
- # To use a 'theme', we define it in gr.Blocks() then put the ChatInterface inside
51
- with gr.Blocks(theme="soft") as demo:
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
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
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")