Mihaiii commited on
Commit
fbd8807
·
verified ·
1 Parent(s): 3b34fd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- async def update_chat(prompt, standard_history, custom_history):
89
- standard_response, custom_response = await generate_responses(prompt, standard_history)
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)]