Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -292,7 +292,7 @@ class BasicAgent:
|
|
292 |
# ✅ New Llama Tool
|
293 |
code_llama_tool = CodeLlamaTool()
|
294 |
|
295 |
-
system_prompt = f"""
|
296 |
You are my general AI assistant. Your task is to answer the question I asked.
|
297 |
First, provide reasoning. Then return: FINAL ANSWER: [your answer].
|
298 |
Answer should be a short string, number, or comma-separated list. Keep it brief.
|
@@ -322,7 +322,6 @@ Answer should be a short string, number, or comma-separated list. Keep it brief.
|
|
322 |
history = "" # could be conversation history, if available
|
323 |
safe_prompt = self._build_safe_prompt(history, question)
|
324 |
answer = self.agent.run(safe_prompt)
|
325 |
-
answer = self.agent.run(question)
|
326 |
print(f"Agent returning answer: {answer}")
|
327 |
return answer
|
328 |
|
|
|
292 |
# ✅ New Llama Tool
|
293 |
code_llama_tool = CodeLlamaTool()
|
294 |
|
295 |
+
self.system_prompt = f"""
|
296 |
You are my general AI assistant. Your task is to answer the question I asked.
|
297 |
First, provide reasoning. Then return: FINAL ANSWER: [your answer].
|
298 |
Answer should be a short string, number, or comma-separated list. Keep it brief.
|
|
|
322 |
history = "" # could be conversation history, if available
|
323 |
safe_prompt = self._build_safe_prompt(history, question)
|
324 |
answer = self.agent.run(safe_prompt)
|
|
|
325 |
print(f"Agent returning answer: {answer}")
|
326 |
return answer
|
327 |
|