Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ class BasicAgent:
|
|
| 21 |
)
|
| 22 |
print("Model loaded.")
|
| 23 |
|
| 24 |
-
def __call__(self, question
|
| 25 |
print(f"Received question: {question[:60]}...")
|
| 26 |
prompt = f"Answer the question clearly and concisely:\n{question.strip()}\nAnswer:"
|
| 27 |
response = self.pipeline(prompt)[0]["generated_text"]
|
|
|
|
| 21 |
)
|
| 22 |
print("Model loaded.")
|
| 23 |
|
| 24 |
+
def __call__(self, question):
|
| 25 |
print(f"Received question: {question[:60]}...")
|
| 26 |
prompt = f"Answer the question clearly and concisely:\n{question.strip()}\nAnswer:"
|
| 27 |
response = self.pipeline(prompt)[0]["generated_text"]
|