Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,14 +127,13 @@ def process_ticket(issue_description: str):
|
|
| 127 |
response = result.get("response", "No response generated")
|
| 128 |
escalation = result.get("escalation", "No escalation specified")
|
| 129 |
mermaid_code = graph.get_graph().draw_mermaid()
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
)
|
| 138 |
except Exception as e:
|
| 139 |
return f"Error occurred: {e}", "Unable to determine escalation"
|
| 140 |
|
|
|
|
| 127 |
response = result.get("response", "No response generated")
|
| 128 |
escalation = result.get("escalation", "No escalation specified")
|
| 129 |
mermaid_code = graph.get_graph().draw_mermaid()
|
| 130 |
+
return (
|
| 131 |
+
response,
|
| 132 |
+
escalation,
|
| 133 |
+
"## Mermaid Graph",
|
| 134 |
+
"Check out this [mermaid link](https://mermaid.live/) to display a graph with the following data",
|
| 135 |
+
f"```mermaid\n{mermaid_code}\n```"
|
| 136 |
+
)
|
|
|
|
| 137 |
except Exception as e:
|
| 138 |
return f"Error occurred: {e}", "Unable to determine escalation"
|
| 139 |
|