Spaces:
Sleeping
Sleeping
Palbha Kulkarni (Nazwale)
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ with gr.Blocks(css=custom_css) as app:
|
|
47 |
state = gr.State([])
|
48 |
|
49 |
# Main logic handler
|
50 |
-
def respond(message, chat_history, model_choice, api_key):
|
51 |
-
|
52 |
-
|
53 |
|
54 |
msg.submit(
|
55 |
respond,
|
|
|
47 |
state = gr.State([])
|
48 |
|
49 |
# Main logic handler
|
50 |
+
def respond(message, chat_history, model_choice, api_key):
|
51 |
+
reply, chat_history = get_response(message, chat_history, model_choice, api_key)
|
52 |
+
return chat_history, chat_history
|
53 |
|
54 |
msg.submit(
|
55 |
respond,
|