Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -262,7 +262,7 @@ def agent_LA(query):
|
|
| 262 |
"Are there any performance issues or timeouts?",
|
| 263 |
"Which services are experiencing the most problems?",
|
| 264 |
"Are there any suspicious patterns or anomalies?",
|
| 265 |
-
"What are the critical issues that need immediate attention?"
|
| 266 |
"Is the Health of the system critical"
|
| 267 |
]
|
| 268 |
|
|
@@ -274,18 +274,19 @@ def agent_LA(query):
|
|
| 274 |
markdown_out += f"{answer}\n\n---\n\n" # Add separator between results
|
| 275 |
|
| 276 |
#render_markdown(markdown_output) # Pass the formatted string to render_markdown
|
|
|
|
| 277 |
|
| 278 |
HP = Health()
|
| 279 |
HP.HealthInspector(results,queries[-1])
|
| 280 |
health_result = ""
|
| 281 |
if HP.health == "Critical":
|
| 282 |
-
health_result = "
|
| 283 |
else:
|
| 284 |
-
health_result = "
|
| 285 |
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
|
| 290 |
|
| 291 |
def greet(query):
|
|
|
|
| 262 |
"Are there any performance issues or timeouts?",
|
| 263 |
"Which services are experiencing the most problems?",
|
| 264 |
"Are there any suspicious patterns or anomalies?",
|
| 265 |
+
"What are the critical issues that need immediate attention?",
|
| 266 |
"Is the Health of the system critical"
|
| 267 |
]
|
| 268 |
|
|
|
|
| 274 |
markdown_out += f"{answer}\n\n---\n\n" # Add separator between results
|
| 275 |
|
| 276 |
#render_markdown(markdown_output) # Pass the formatted string to render_markdown
|
| 277 |
+
#return markdown_out
|
| 278 |
|
| 279 |
HP = Health()
|
| 280 |
HP.HealthInspector(results,queries[-1])
|
| 281 |
health_result = ""
|
| 282 |
if HP.health == "Critical":
|
| 283 |
+
health_result = "SYSTEM IN HIGH ALERT STATE"
|
| 284 |
else:
|
| 285 |
+
health_result = "SYSTEM IN GOOD HEALTH"
|
| 286 |
|
| 287 |
+
final_result = markdown_out + "\n ## Health Doc\n\n" + health_result
|
| 288 |
+
return final_result
|
| 289 |
+
|
| 290 |
|
| 291 |
|
| 292 |
def greet(query):
|