mirror of
https://github.com/intari/search2_chatgpt.git
synced 2025-04-25 16:09:11 +00:00
all ok
This commit is contained in:
parent
27dbc21537
commit
957362f0a8
4 changed files with 9 additions and 9 deletions
8
.env
8
.env
|
@ -1,5 +1,5 @@
|
|||
STORAGE_TYPE=smb # "smb" или "local"
|
||||
STORAGE_TYPE=smb # "smb" ¨«¨ "local"
|
||||
LOCAL_STORAGE_PATH=./local_files
|
||||
SMB_STORAGE_PATH=//IP_ИЛИ_ХОСТ_СМБ/ПУТЬ_К_ШАРЕ
|
||||
SMB_USER=ТВОЙ_ЛОГИН
|
||||
SMB_PASSWORD=ТВОЙ_ПАРОЛЬ
|
||||
SMB_STORAGE_PATH=//IP_ˆ‹ˆ_•Ž‘’_‘Œ<EFBFBD>/<2F>“’œ_Š_˜€<CB9C>…
|
||||
SMB_USER=’‚މ_‹Žƒˆ<EFBFBD>
|
||||
SMB_PASSWORD=’‚މ_<EFBFBD>€<EFBFBD>Ž‹œ
|
||||
|
|
|
@ -21,4 +21,4 @@ def get_file(filename: str):
|
|||
file_path = os.path.join(FILES_DIR, filename)
|
||||
if os.path.exists(file_path):
|
||||
return FileResponse(file_path, filename=filename)
|
||||
return {"error": "Ôàéë íå íàéäåí"}
|
||||
return {"error": "Файл не найден"}
|
||||
|
|
|
@ -41,7 +41,7 @@ def index_files():
|
|||
|
||||
if docs:
|
||||
requests.post(f"{SEARCH_ENGINE}/indexes/{INDEX_NAME}/documents", json=docs)
|
||||
print(f"Èíäåêñèðîâàíî {len(docs)} ôàéëîâ!")
|
||||
print(f"Индексировано {len(docs)} файлов!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
index_files()
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Ïîèñê</title>
|
||||
<title>Поиск</title>
|
||||
</head>
|
||||
<body>
|
||||
<input id="query" type="text" placeholder="Ââåäèòå çàïðîñ">
|
||||
<button onclick="search()">Èñêàòü</button>
|
||||
<input id="query" type="text" placeholder="Введите запрос">
|
||||
<button onclick="search()">Искать</button>
|
||||
<ul id="results"></ul>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Add table
Reference in a new issue