Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -268,7 +268,7 @@ def agent_LA(query):
|
|
| 268 |
|
| 269 |
results = main_LogAnalyzer(queries)
|
| 270 |
# Format the results dictionary into a markdown string
|
| 271 |
-
|
| 272 |
for query, answer in results.items():
|
| 273 |
markdown_out += f"## Query: {query}\n\n"
|
| 274 |
markdown_out += f"{answer}\n\n---\n\n" # Add separator between results
|
|
@@ -277,6 +277,7 @@ def agent_LA(query):
|
|
| 277 |
|
| 278 |
HP = Health()
|
| 279 |
HP.HealthInspector(results,queries[-1])
|
|
|
|
| 280 |
if HP.health == "Critical":
|
| 281 |
health_result = "ALERTTTTTTTTTTT"
|
| 282 |
else:
|
|
|
|
| 268 |
|
| 269 |
results = main_LogAnalyzer(queries)
|
| 270 |
# Format the results dictionary into a markdown string
|
| 271 |
+
markdown_out = ""
|
| 272 |
for query, answer in results.items():
|
| 273 |
markdown_out += f"## Query: {query}\n\n"
|
| 274 |
markdown_out += f"{answer}\n\n---\n\n" # Add separator between results
|
|
|
|
| 277 |
|
| 278 |
HP = Health()
|
| 279 |
HP.HealthInspector(results,queries[-1])
|
| 280 |
+
health_result = ""
|
| 281 |
if HP.health == "Critical":
|
| 282 |
health_result = "ALERTTTTTTTTTTT"
|
| 283 |
else:
|