Update app.py
Browse files
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
|
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."
|