VatsalPatel18 commited on
Commit
e8ef1da
·
verified ·
1 Parent(s): a11491a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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"