Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -5,6 +5,10 @@ from langchain_community.llms import LlamaCpp
|
|
5 |
from langchain.agents import initialize_agent
|
6 |
from functions import get_weather_info, get_forecast, shutdown
|
7 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Set custom cache directory
|
10 |
cache_dir = "/home/user/app/hf_cache"
|
|
|
5 |
from langchain.agents import initialize_agent
|
6 |
from functions import get_weather_info, get_forecast, shutdown
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
+
from dotenv import load_dotenv
|
9 |
+
|
10 |
+
# Load environment variables from .env file
|
11 |
+
load_dotenv()
|
12 |
|
13 |
# Set custom cache directory
|
14 |
cache_dir = "/home/user/app/hf_cache"
|