Spaces:
Runtime error
Runtime error
Update app.py
Browse files89 unmodified lines90919293939495969797989910010110210110310410510610789 unmodified lines full_response = "" for main_content, sources in get_response_with_search(message, model, num_calls=num_calls, temperature=temperature, use_embeddings=use_embeddings, system_prompt=system_prompt): full_response += main_content yield history + [(message, full_response)] new_history = history + [(message, full_response)] yield new_history if sources: full_response += f"\n\nSources:\n{sources}" yield history + [(message, full_response)] new_history = history + [(message, full_response)] yield new_history except Exception as e: logging.error(f"Error with {model}: {str(e)}") error_message = f"An error occurred with the {model} model: {str(e)}. Please try again or select a different model." yield history + [(message, error_message)] new_history = history + [(message, error_message)] yield new_history
def create_web_search_vectors(search_results): embed = get_embeddings()app.py+6-3