added status endpoint
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def get_kb_size():
|
|
| 105 |
# Добавим функцию проверки статуса базы знаний
|
| 106 |
def check_kb_status():
|
| 107 |
try:
|
| 108 |
-
response = requests.get("http://127.0.0.1:7860/")
|
| 109 |
if response.status_code == 200:
|
| 110 |
data = response.json()
|
| 111 |
if data["knowledge_base_exists"]:
|
|
|
|
| 105 |
# Добавим функцию проверки статуса базы знаний
|
| 106 |
def check_kb_status():
|
| 107 |
try:
|
| 108 |
+
response = requests.get("http://127.0.0.1:7860/status")
|
| 109 |
if response.status_code == 200:
|
| 110 |
data = response.json()
|
| 111 |
if data["knowledge_base_exists"]:
|