Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ class LogAnalyzer:
|
|
| 99 |
),
|
| 100 |
)
|
| 101 |
else:
|
| 102 |
-
print("
|
| 103 |
|
| 104 |
|
| 105 |
def upload_embeddings_to_qdrant(self):
|
|
@@ -121,7 +121,7 @@ class LogAnalyzer:
|
|
| 121 |
]
|
| 122 |
)
|
| 123 |
else:
|
| 124 |
-
print("Qdrant client
|
| 125 |
|
| 126 |
def search_qdrant(self, query, n=15):
|
| 127 |
if self.client is not None and self.embedder is not None:
|
|
@@ -143,7 +143,7 @@ class LogAnalyzer:
|
|
| 143 |
|
| 144 |
return results
|
| 145 |
else:
|
| 146 |
-
print("Qdrant client
|
| 147 |
return []
|
| 148 |
|
| 149 |
def setup_openrouter_client(self):
|
|
@@ -193,7 +193,7 @@ health of the system in one word - good or critical in the same line.
|
|
| 193 |
self.results[query] = generated_text # Store the query and its result
|
| 194 |
return generated_text
|
| 195 |
else:
|
| 196 |
-
print("
|
| 197 |
return "Error: Log analysis components not fully initialized."
|
| 198 |
|
| 199 |
def get_results(self):
|
|
|
|
| 99 |
),
|
| 100 |
)
|
| 101 |
else:
|
| 102 |
+
print("self.df_combined is None.")
|
| 103 |
|
| 104 |
|
| 105 |
def upload_embeddings_to_qdrant(self):
|
|
|
|
| 121 |
]
|
| 122 |
)
|
| 123 |
else:
|
| 124 |
+
print("Qdrant client not initialized")
|
| 125 |
|
| 126 |
def search_qdrant(self, query, n=15):
|
| 127 |
if self.client is not None and self.embedder is not None:
|
|
|
|
| 143 |
|
| 144 |
return results
|
| 145 |
else:
|
| 146 |
+
print("Qdrant client not initialized")
|
| 147 |
return []
|
| 148 |
|
| 149 |
def setup_openrouter_client(self):
|
|
|
|
| 193 |
self.results[query] = generated_text # Store the query and its result
|
| 194 |
return generated_text
|
| 195 |
else:
|
| 196 |
+
print("open router client not initialized")
|
| 197 |
return "Error: Log analysis components not fully initialized."
|
| 198 |
|
| 199 |
def get_results(self):
|