Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def read_cv(query: str) -> str:
|
|
| 19 |
return text[:2000] # Return first 2000 chars for context
|
| 20 |
|
| 21 |
# 2. Initialize the Agent
|
| 22 |
-
model = HfApiModel(model_id="
|
| 23 |
agent = CodeAgent(
|
| 24 |
tools=[DuckDuckGoSearchTool(), read_cv],
|
| 25 |
model=model,
|
|
@@ -27,7 +27,7 @@ agent = CodeAgent(
|
|
| 27 |
)
|
| 28 |
|
| 29 |
def chat_interface(message, history):
|
| 30 |
-
prompt = f"You are a personal assistant for
|
| 31 |
return agent.run(prompt)
|
| 32 |
|
| 33 |
# 3. Launch the API
|
|
|
|
| 19 |
return text[:2000] # Return first 2000 chars for context
|
| 20 |
|
| 21 |
# 2. Initialize the Agent
|
| 22 |
+
model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 23 |
agent = CodeAgent(
|
| 24 |
tools=[DuckDuckGoSearchTool(), read_cv],
|
| 25 |
model=model,
|
|
|
|
| 27 |
)
|
| 28 |
|
| 29 |
def chat_interface(message, history):
|
| 30 |
+
prompt = f"You are a personal assistant for Ivan. Use the read_cv tool to answer questions about their background. If the user asks about companies or events they were involved in, use the DuckDuckGoSearchTool() web search tool to find more context. Query: {message}"
|
| 31 |
return agent.run(prompt)
|
| 32 |
|
| 33 |
# 3. Launch the API
|