Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,16 +129,14 @@ with gr.Blocks(theme= gr.themes.Soft(
|
|
| 129 |
|
| 130 |
session_id = gr.State(str(uuid.uuid4()))
|
| 131 |
|
| 132 |
-
chatbot = gr.Chatbot(
|
| 133 |
msg = gr.Textbox( label="❓",placeholder="Posez une question")
|
| 134 |
|
| 135 |
def respond(message, chat_history, session_id):
|
| 136 |
|
| 137 |
answer = chat_fn(message, session_id)
|
| 138 |
|
| 139 |
-
chat_history.append(
|
| 140 |
-
chat_history.append({"role": "assistant", "content": answer})
|
| 141 |
-
#chat_history.append((message, answer))
|
| 142 |
|
| 143 |
return "", chat_history, session_id
|
| 144 |
|
|
|
|
| 129 |
|
| 130 |
session_id = gr.State(str(uuid.uuid4()))
|
| 131 |
|
| 132 |
+
chatbot = gr.Chatbot(height=800)
|
| 133 |
msg = gr.Textbox( label="❓",placeholder="Posez une question")
|
| 134 |
|
| 135 |
def respond(message, chat_history, session_id):
|
| 136 |
|
| 137 |
answer = chat_fn(message, session_id)
|
| 138 |
|
| 139 |
+
chat_history.append((message, answer))
|
|
|
|
|
|
|
| 140 |
|
| 141 |
return "", chat_history, session_id
|
| 142 |
|