Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -85,8 +85,8 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
|
85 |
submit_button = gr.Button("Submit")
|
86 |
|
87 |
# Function to handle chat updates
|
88 |
-
|
89 |
-
standard_response, custom_response =
|
90 |
|
91 |
# Append new responses to chat histories
|
92 |
standard_history = standard_history + [(prompt, standard_response)]
|
|
|
85 |
submit_button = gr.Button("Submit")
|
86 |
|
87 |
# Function to handle chat updates
|
88 |
+
def update_chat(prompt, standard_history, custom_history):
|
89 |
+
standard_response, custom_response = generate_responses(prompt, standard_history)
|
90 |
|
91 |
# Append new responses to chat histories
|
92 |
standard_history = standard_history + [(prompt, standard_response)]
|