uwe311 commited on
Commit
f687051
Β·
1 Parent(s): a9ded16

Fix: Gradio 6.x API (theme in launch(), no bubble_full_width)

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -96,7 +96,6 @@ def chat(message, history, system_prompt, temperature):
96
 
97
  # ─── UI ──────────────────────────────────────────────────────────────────
98
  with gr.Blocks(
99
- theme=gr.themes.Soft(primary_hue="blue", secondary_hue="indigo"),
100
  title="Qwen Coder Boosted",
101
  ) as demo:
102
  gr.Markdown("""
@@ -124,7 +123,6 @@ with gr.Blocks(
124
  chatbot = gr.Chatbot(
125
  label="πŸ’¬ Chat",
126
  height=550,
127
- bubble_full_width=False,
128
  show_copy_button=True,
129
  )
130
 
@@ -167,4 +165,4 @@ with gr.Blocks(
167
  clear_btn.click(fn=lambda: None, outputs=[chatbot])
168
 
169
  if __name__ == "__main__":
170
- demo.launch()
 
96
 
97
  # ─── UI ──────────────────────────────────────────────────────────────────
98
  with gr.Blocks(
 
99
  title="Qwen Coder Boosted",
100
  ) as demo:
101
  gr.Markdown("""
 
123
  chatbot = gr.Chatbot(
124
  label="πŸ’¬ Chat",
125
  height=550,
 
126
  show_copy_button=True,
127
  )
128
 
 
165
  clear_btn.click(fn=lambda: None, outputs=[chatbot])
166
 
167
  if __name__ == "__main__":
168
+ demo.launch(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="indigo"))