Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ with gr.Blocks() as demo:
|
|
| 120 |
yield from support_agent_fn(previous_prompt, new_history)
|
| 121 |
|
| 122 |
def support_agent_fn(message, history):
|
| 123 |
-
findings, response = weai_support(
|
| 124 |
|
| 125 |
response = response['messages'][-1].content#.split('<|start_header_id|>assistant<|end_header_id|>')[-1].strip()
|
| 126 |
history.append({"role": "user", "content": message})
|
|
|
|
| 120 |
yield from support_agent_fn(previous_prompt, new_history)
|
| 121 |
|
| 122 |
def support_agent_fn(message, history):
|
| 123 |
+
findings, response = weai_support(message)
|
| 124 |
|
| 125 |
response = response['messages'][-1].content#.split('<|start_header_id|>assistant<|end_header_id|>')[-1].strip()
|
| 126 |
history.append({"role": "user", "content": message})
|