Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,7 @@ from bs4 import BeautifulSoup
|
|
| 14 |
from pydantic import BaseModel, Field
|
| 15 |
import nest_asyncio
|
| 16 |
import requests
|
| 17 |
-
|
| 18 |
-
import asyncio
|
| 19 |
#from agents.extensions.models.litellm_model import LitellmModel
|
| 20 |
|
| 21 |
os.getenv("OPENAI_API_KEY")
|
|
@@ -134,7 +133,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 134 |
class BasicAgent:
|
| 135 |
def __init__(self):
|
| 136 |
print("BasicAgent initialized.")
|
| 137 |
-
|
| 138 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 139 |
|
| 140 |
instructions = """
|
|
|
|
| 14 |
from pydantic import BaseModel, Field
|
| 15 |
import nest_asyncio
|
| 16 |
import requests
|
| 17 |
+
|
|
|
|
| 18 |
#from agents.extensions.models.litellm_model import LitellmModel
|
| 19 |
|
| 20 |
os.getenv("OPENAI_API_KEY")
|
|
|
|
| 133 |
class BasicAgent:
|
| 134 |
def __init__(self):
|
| 135 |
print("BasicAgent initialized.")
|
| 136 |
+
def __call__(self, question: str) -> str:
|
| 137 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 138 |
|
| 139 |
instructions = """
|