Spaces:
Running
Running
Update app.py
Browse files
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 |
-
#
|
| 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 |
-
#
|
| 72 |
-
chatbot = gr.Chatbot(label="Council Protokoll", height=600
|
| 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 |
|