Spaces:
Sleeping
Sleeping
Palbha Kulkarni (Nazwale)
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_response(message, chat_history, model_choice, api_key):
|
|
19 |
chat_history.append({'role':"user","content":message})
|
20 |
reply =generate_answer(message,model_choice,api_key)
|
21 |
|
22 |
-
chat_history.append(
|
23 |
return reply, chat_history
|
24 |
# Gradio app
|
25 |
with gr.Blocks(css=custom_css) as app:
|
|
|
19 |
chat_history.append({'role':"user","content":message})
|
20 |
reply =generate_answer(message,model_choice,api_key)
|
21 |
|
22 |
+
chat_history.append({"role":"assistant","content": reply})
|
23 |
return reply, chat_history
|
24 |
# Gradio app
|
25 |
with gr.Blocks(css=custom_css) as app:
|