Spaces:
Sleeping
Sleeping
Update app.py
Browse filesmodifications for attempt 3
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
-
from agents import
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
@@ -18,7 +18,7 @@ class BasicAgent:
|
|
| 18 |
def __call__(self, question: str) -> str:
|
| 19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 20 |
final_question = initial_general_instructions + agent_1_instructions + question + basic_general_instructions
|
| 21 |
-
final_answer =
|
| 22 |
print(f"Agent returning fixed answer: {final_answer}")
|
| 23 |
return final_answer
|
| 24 |
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
from agents import web_agent_1, web_agent_2, web_agent_3 ,agent_1_instructions
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
|
|
| 18 |
def __call__(self, question: str) -> str:
|
| 19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 20 |
final_question = initial_general_instructions + agent_1_instructions + question + basic_general_instructions
|
| 21 |
+
final_answer = web_agent_2.run(final_question)
|
| 22 |
print(f"Agent returning fixed answer: {final_answer}")
|
| 23 |
return final_answer
|
| 24 |
|