Shreyas094 commited on
Commit
5df4369
·
verified ·
1 Parent(s): 2fd4939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,8 +78,8 @@ def respond(message, history, model, temperature, num_calls, use_embeddings, sys
78
 
79
  try:
80
  for main_content, sources in get_response_with_search(message, model, num_calls, temperature, use_embeddings, system_prompt):
81
- response = f"{main_content}\n\n{sources}"
82
- yield response
83
  except Exception as e:
84
  logging.error(f"Error with {model}: {str(e)}")
85
  yield f"An error occurred with the {model} model: {str(e)}. Please try again or select a different model."
 
78
 
79
  try:
80
  for main_content, sources in get_response_with_search(message, model, num_calls, temperature, use_embeddings, system_prompt):
81
+ # response = f"{main_content}\n\n{sources}"
82
+ yield main_content
83
  except Exception as e:
84
  logging.error(f"Error with {model}: {str(e)}")
85
  yield f"An error occurred with the {model} model: {str(e)}. Please try again or select a different model."