Spaces:
Runtime error
Runtime error
fix in temp env var
Browse files
app.py
CHANGED
|
@@ -15,7 +15,8 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
self.all_tools = build_tool()
|
| 18 |
-
self.react_graph = build_langgraph(os.getenv("PROVIDER"), model=os.getenv("MODEL"),
|
|
|
|
| 19 |
print("BasicAgent initialized.")
|
| 20 |
|
| 21 |
def __call__(self, question: str) -> str:
|
|
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
self.all_tools = build_tool()
|
| 18 |
+
self.react_graph = build_langgraph(os.getenv("PROVIDER"), model=os.getenv("MODEL"),
|
| 19 |
+
temperature=float(os.getenv("TEMPERATURE")), all_tools=self.all_tools)
|
| 20 |
print("BasicAgent initialized.")
|
| 21 |
|
| 22 |
def __call__(self, question: str) -> str:
|