wangsheng commited on
Commit
7bd0413
·
verified ·
1 Parent(s): 94c889c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -374,11 +374,10 @@ def create_demo():
374
 
375
  # Right - Chat Interface
376
  with gr.Column(scale=2):
377
- # Chatbot - Gradio 6.0 compatible
378
  chatbot = gr.Chatbot(
379
  label="💬 Chat with DeepSeek-V4 Pro",
380
  height=550,
381
- bubble_full_width=False,
382
  type="messages"
383
  )
384
 
@@ -492,11 +491,10 @@ def create_demo():
492
  if i + 1 < len(history):
493
  internal_history.append((history[i]["content"], history[i+1]["content"]))
494
 
495
- result = generate_response(
496
  message, internal_history, thinking_mode, max_tokens,
497
  temperature, top_p, system_prompt, show_thinking
498
  )
499
- msg, hist, content, thinking, status = result
500
 
501
  gr_history = []
502
  for user_msg, assistant_msg in hist:
 
374
 
375
  # Right - Chat Interface
376
  with gr.Column(scale=2):
377
+ # Chatbot - Gradio 6.0 compatible (removed bubble_full_width)
378
  chatbot = gr.Chatbot(
379
  label="💬 Chat with DeepSeek-V4 Pro",
380
  height=550,
 
381
  type="messages"
382
  )
383
 
 
491
  if i + 1 < len(history):
492
  internal_history.append((history[i]["content"], history[i+1]["content"]))
493
 
494
+ msg, hist, content, thinking, status = generate_response(
495
  message, internal_history, thinking_mode, max_tokens,
496
  temperature, top_p, system_prompt, show_thinking
497
  )
 
498
 
499
  gr_history = []
500
  for user_msg, assistant_msg in hist: