Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,8 @@ agent = Agent(
|
|
| 32 |
async def chat_with_agent(user_input, history):
|
| 33 |
history = history or []
|
| 34 |
result = await agent.run(user_input)
|
| 35 |
-
cleaned_output = re.sub(r"<think>.*?</think>", "", result.output, flags=re.DOTALL).strip()
|
| 36 |
history.append(("User", user_input))
|
| 37 |
-
history.append(("Jobcy",
|
| 38 |
return history, history
|
| 39 |
|
| 40 |
async def main():
|
|
|
|
| 32 |
async def chat_with_agent(user_input, history):
|
| 33 |
history = history or []
|
| 34 |
result = await agent.run(user_input)
|
|
|
|
| 35 |
history.append(("User", user_input))
|
| 36 |
+
history.append(("Jobcy", result))
|
| 37 |
return history, history
|
| 38 |
|
| 39 |
async def main():
|