Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,8 @@ class BasicAgent:
|
|
| 22 |
print("BasicAgent initialized.")
|
| 23 |
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()],
|
| 24 |
model=HfApiModel(
|
| 25 |
-
|
| 26 |
-
|
| 27 |
))
|
| 28 |
|
| 29 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question. Report your thoughts, and
|
|
|
|
| 22 |
print("BasicAgent initialized.")
|
| 23 |
self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()],
|
| 24 |
model=HfApiModel(
|
| 25 |
+
model_name="mistralai/Mistral-7B-Instruct-v0.1" , # Or another accessible model
|
| 26 |
+
api_key=os.getenv("HF_TOKEN")
|
| 27 |
))
|
| 28 |
|
| 29 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question. Report your thoughts, and
|