aidn commited on
Commit
a823fac
·
verified ·
1 Parent(s): 35afd5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,7 +30,7 @@ def ask_model(model_id, system_prompt, user_input):
30
  return f"🚨 Error: {str(e)}"
31
 
32
  def run_council(user_prompt, rounds):
33
- # Die Frage des Users wird direkt ins Protokoll aufgenommen
34
  history = [{"role": "user", "content": user_prompt}]
35
  yield history
36
 
@@ -68,8 +68,8 @@ with gr.Blocks() as demo:
68
 
69
  start_btn = gr.Button("Protokoll starten", variant="primary")
70
 
71
- # Hier funktioniert type="messages" jetzt fehlerfrei!
72
- chatbot = gr.Chatbot(label="Council Protokoll", height=600, type="messages")
73
 
74
  start_btn.click(run_council, inputs=[input_text, rounds_slider], outputs=[chatbot])
75
 
 
30
  return f"🚨 Error: {str(e)}"
31
 
32
  def run_council(user_prompt, rounds):
33
+ # Gradio 6 Standard: Dictionary-Format
34
  history = [{"role": "user", "content": user_prompt}]
35
  yield history
36
 
 
68
 
69
  start_btn = gr.Button("Protokoll starten", variant="primary")
70
 
71
+ # Der magische Fix für Gradio 6.6.0: KEIN type="messages" mehr nötig!
72
+ chatbot = gr.Chatbot(label="Council Protokoll", height=600)
73
 
74
  start_btn.click(run_council, inputs=[input_text, rounds_slider], outputs=[chatbot])
75