Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,14 +19,15 @@ class BasicAgent:
|
|
19 |
def __init__(self, model=None, tools=None):
|
20 |
self.model = model
|
21 |
self.tools = tools if tools is not None else []
|
|
|
22 |
print("BasicAgent initialized.")
|
23 |
|
24 |
def __call__(self, question: str) -> str:
|
25 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
26 |
# Implement your agent logic here using self.model and self.tools
|
27 |
-
|
28 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
29 |
-
return
|
30 |
|
31 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
32 |
"""
|
|
|
19 |
def __init__(self, model=None, tools=None):
|
20 |
self.model = model
|
21 |
self.tools = tools if tools is not None else []
|
22 |
+
self.agent = BasicAgent
|
23 |
print("BasicAgent initialized.")
|
24 |
|
25 |
def __call__(self, question: str) -> str:
|
26 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
27 |
# Implement your agent logic here using self.model and self.tools
|
28 |
+
final_answer = self.agent.run
|
29 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
30 |
+
return final_answer
|
31 |
|
32 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
33 |
"""
|