Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ class BasicAgent:
|
|
| 143 |
llm = ChatOpenAI(model="gpt-4o", temperature=0)
|
| 144 |
self.agent= CodeAgent(
|
| 145 |
tools = [add, subtract, multiply, divide, web_search, image_generation_tool],
|
| 146 |
-
|
| 147 |
)
|
| 148 |
def __call__(self, question: str, context: str = "") -> str:
|
| 149 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
|
| 143 |
llm = ChatOpenAI(model="gpt-4o", temperature=0)
|
| 144 |
self.agent= CodeAgent(
|
| 145 |
tools = [add, subtract, multiply, divide, web_search, image_generation_tool],
|
| 146 |
+
model=llm,
|
| 147 |
)
|
| 148 |
def __call__(self, question: str, context: str = "") -> str:
|
| 149 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|