Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ from transformers import pipeline
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
print("Initializing BasicAgent with a transformer model...")
|
| 18 |
-
self.qa_pipeline = pipeline("text-generation", model="
|
| 19 |
|
| 20 |
def __call__(self, question: str) -> str:
|
| 21 |
print(f"Agent received question: {question}")
|
|
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
print("Initializing BasicAgent with a transformer model...")
|
| 18 |
+
self.qa_pipeline = pipeline("text-generation", model="sshleifer/tiny-distilroberta-base") # You can change model if needed
|
| 19 |
|
| 20 |
def __call__(self, question: str) -> str:
|
| 21 |
print(f"Agent received question: {question}")
|