Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ class SmartAgent:
|
|
| 53 |
|
| 54 |
def __call__(self, question: str) -> str:
|
| 55 |
# prompt = f"{self.system_prompt}\nQuestion: {question}\n"
|
| 56 |
-
prompt = f"{self.system_prompt} Question: {
|
| 57 |
output = self.generator(prompt, return_full_text=False)[0]['generated_text']
|
| 58 |
answer = self.extract_final_answer(output)
|
| 59 |
print(f"[DEBUG] Question: {question}")
|
|
|
|
| 53 |
|
| 54 |
def __call__(self, question: str) -> str:
|
| 55 |
# prompt = f"{self.system_prompt}\nQuestion: {question}\n"
|
| 56 |
+
prompt = f"{self.system_prompt} Question: {question}"
|
| 57 |
output = self.generator(prompt, return_full_text=False)[0]['generated_text']
|
| 58 |
answer = self.extract_final_answer(output)
|
| 59 |
print(f"[DEBUG] Question: {question}")
|