shukdevdatta123 commited on
Commit
38c5503
·
verified ·
1 Parent(s): 6bdf7a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -171,9 +171,10 @@ def process_voice_query(transcription, query, temperature, top_p, max_output_tok
171
 
172
  return query_openai(messages, temperature, top_p, max_output_tokens)
173
 
174
- # Function to clear the chat
175
  def clear_chat():
176
- return "", "", "", "", "", "", "", None, "", None, "", None, "", "", "", 1.0, 1.0, 2048
 
177
 
178
  # Gradio UI Layout
179
  with gr.Blocks() as demo:
 
171
 
172
  return query_openai(messages, temperature, top_p, max_output_tokens)
173
 
174
+ # Function to clear the chat - FIXED to return all 21 expected outputs
175
  def clear_chat():
176
+ # Return 21 values for all the output components
177
+ return "", "", "", "", "", "", "", None, "", None, "", None, "", "", None, "", "", "", 1.0, 1.0, 2048
178
 
179
  # Gradio UI Layout
180
  with gr.Blocks() as demo: