Update main.py
Browse files
main.py
CHANGED
@@ -371,6 +371,9 @@ async def get_answer_with_chat_history(llm: str, question: Question):
|
|
371 |
|
372 |
return response
|
373 |
|
|
|
|
|
|
|
374 |
# Set ngrok binary path
|
375 |
# ngrok.set_ngrok_path(os.path.expanduser("~/.ngrok2/ngrok"))
|
376 |
conf.get_default().ngrok_path = "/usr/local/bin/ngrok"
|
|
|
371 |
|
372 |
return response
|
373 |
|
374 |
+
# Set HOME environment variable
|
375 |
+
os.environ["HOME"] = "/app"
|
376 |
+
|
377 |
# Set ngrok binary path
|
378 |
# ngrok.set_ngrok_path(os.path.expanduser("~/.ngrok2/ngrok"))
|
379 |
conf.get_default().ngrok_path = "/usr/local/bin/ngrok"
|