Spaces:
Sleeping
Sleeping
Commit
·
d62ee7c
1
Parent(s):
089e88f
removed dotenv
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import requests
|
|
| 5 |
import inspect
|
| 6 |
import pandas as pd
|
| 7 |
import datetime
|
| 8 |
-
from dotenv import load_dotenv
|
| 9 |
|
| 10 |
from langchain.tools import tool, get_all_tools
|
| 11 |
from typing import TypedDict, Annotated
|
|
@@ -21,9 +21,9 @@ from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
|
| 21 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 22 |
|
| 23 |
# Load the environment variables
|
| 24 |
-
load_dotenv()
|
| 25 |
-
HF_ACCESS_KEY = os.
|
| 26 |
-
WEATHER_API_KEY = os.
|
| 27 |
|
| 28 |
########## ----- DEFINING TOOLS -----##########
|
| 29 |
|
|
|
|
| 5 |
import inspect
|
| 6 |
import pandas as pd
|
| 7 |
import datetime
|
| 8 |
+
# from dotenv import load_dotenv
|
| 9 |
|
| 10 |
from langchain.tools import tool, get_all_tools
|
| 11 |
from typing import TypedDict, Annotated
|
|
|
|
| 21 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 22 |
|
| 23 |
# Load the environment variables
|
| 24 |
+
# load_dotenv()
|
| 25 |
+
HF_ACCESS_KEY = os.getenv('HF_ACCESS_KEY')
|
| 26 |
+
WEATHER_API_KEY = os.getenv('WEATHER_API_KEY')
|
| 27 |
|
| 28 |
########## ----- DEFINING TOOLS -----##########
|
| 29 |
|