Spaces:
Sleeping
Sleeping
Palbha Kulkarni (Nazwale)
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,8 @@ button:hover { background-color: #a01010; }
|
|
18 |
def get_response(message, chat_history, model_choice, api_key):
|
19 |
reply =generate_answer(message,model_choice,api_key)
|
20 |
|
21 |
-
chat_history.append(
|
22 |
return reply, chat_history
|
23 |
-
|
24 |
# Gradio app
|
25 |
with gr.Blocks(css=custom_css) as app:
|
26 |
with gr.Row():
|
|
|
18 |
def get_response(message, chat_history, model_choice, api_key):
|
19 |
reply =generate_answer(message,model_choice,api_key)
|
20 |
|
21 |
+
chat_history.append([message, reply])
|
22 |
return reply, chat_history
|
|
|
23 |
# Gradio app
|
24 |
with gr.Blocks(css=custom_css) as app:
|
25 |
with gr.Row():
|