athottam commited on
Commit
5042d98
·
verified ·
1 Parent(s): b3fdbe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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 = "ALERTTTTTTTTTTT"
283
  else:
284
- health_result = "NO ALERTTTTTTTTTTT"
285
 
286
- #final_result = markdown_output + "\n" + "HEALTH DOC" + "\n" + health_result
287
- #return final_result
288
- return markdown_out
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):