Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -334,7 +334,7 @@ def improve_report_from_chat(user_message: str, chat_history: list, report_text:
|
|
| 334 |
chat_history.append([user_message, answer])
|
| 335 |
return chat_history, "", updated_report
|
| 336 |
|
| 337 |
-
def send_chat_message(user_message, chat_history, report_text, crumbs_text):
|
| 338 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
| 339 |
os.environ["SERPAPI_API_KEY"] = serpapi_api_key
|
| 340 |
|
|
|
|
| 334 |
chat_history.append([user_message, answer])
|
| 335 |
return chat_history, "", updated_report
|
| 336 |
|
| 337 |
+
def send_chat_message(user_message, openai_api_key, serpapi_api_key, chat_history, report_text, crumbs_text):
|
| 338 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
| 339 |
os.environ["SERPAPI_API_KEY"] = serpapi_api_key
|
| 340 |
|