Update app.py
Browse files
app.py
CHANGED
|
@@ -43,9 +43,10 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 43 |
response_aux2 = f"Erro ao gerar resposta: {e}"
|
| 44 |
|
| 45 |
# Atualiza histórico no formato correto para o Gradio Chatbot
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
|
| 51 |
# Atualiza histórico do chat
|
|
|
|
| 43 |
response_aux2 = f"Erro ao gerar resposta: {e}"
|
| 44 |
|
| 45 |
# Atualiza histórico no formato correto para o Gradio Chatbot
|
| 46 |
+
history.append({"role": "user", "content": message})
|
| 47 |
+
history.append({"role": "assistant", "content": response_aux2})
|
| 48 |
|
| 49 |
+
return history, history
|
| 50 |
|
| 51 |
|
| 52 |
# Atualiza histórico do chat
|