以下是我启动的前端:
(python3.11) C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main\ui>npm run dev
web@v1.0.0 dev
vite
VITE v4.5.5 ready in 6884 ms
➜ Local: http://localhost:3000/ui/
➜ Network: http://10.9.214.43:3000/ui/
➜ Network: http://192.168.224.1:3000/ui/
➜ Network: http://192.168.177.1:3000/ui/
➜ press h to show help
后端python main.py start:
(python3.11) C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main>python main.py start
Building prefix dict from the default dictionary …
DEBUG:jieba:Building prefix dict from the default dictionary …
Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
DEBUG:jieba:Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
Loading model cost 2.758 seconds.
DEBUG:jieba:Loading model cost 2.758 seconds.
Prefix dict has been built successfully.
DEBUG:jieba:Prefix dict has been built successfully.
Operations to perform:
Apply all migrations: application, contenttypes, dataset, django_apscheduler, django_celery_beat, embedding, function_lib, setting, users
Running migrations:
No migrations to apply.
Your models in app(s): ‘dataset’, ‘function_lib’ have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
-
Start Gunicorn Local Model WSGI HTTP Server
-
Start Gunicorn WSGI HTTP Server
-
Start Celery as Distributed Task Queue: Celery
2024-12-16 02:47:59 Check service status: local_model → running at 4724
2024-12-16 02:47:59 Check service status: gunicorn → running at 716
2024-12-16 02:47:59 Check service status: celery_default → running at 13596
2024-12-16 02:48:30 Check service status: local_model → running at 4724
2024-12-16 02:48:30 Check service status: gunicorn → running at 716
2024-12-16 02:48:30 Check service status: celery_default → running at 13596
2024-12-16 02:49:01 Check service status: local_model → running at 4724
2024-12-16 02:49:01 Check service status: gunicorn → running at 716
后端python main.py dev local_model:
(python3.11) C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main>python main.py dev local_model
Building prefix dict from the default dictionary …
DEBUG:jieba:Building prefix dict from the default dictionary …
Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
DEBUG:jieba:Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
Loading model cost 0.963 seconds.
DEBUG:jieba:Loading model cost 0.963 seconds.
Prefix dict has been built successfully.
DEBUG:jieba:Prefix dict has been built successfully.
Operations to perform:
Apply all migrations: application, contenttypes, dataset, django_apscheduler, django_celery_beat, embedding, function_lib, setting, users
Running migrations:
No migrations to apply.
Your models in app(s): ‘dataset’, ‘function_lib’ have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
Building prefix dict from the default dictionary …
DEBUG:jieba:Building prefix dict from the default dictionary …
Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
DEBUG:jieba:Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
Loading model cost 0.981 seconds.
DEBUG:jieba:Loading model cost 0.981 seconds.
Prefix dict has been built successfully.
DEBUG:jieba:Prefix dict has been built successfully.
Operations to perform:
Apply all migrations: application, contenttypes, dataset, django_apscheduler, django_celery_beat, embedding, function_lib, setting, users
Running migrations:
No migrations to apply.
Your models in app(s): ‘dataset’, ‘function_lib’ have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
December 16, 2024 - 02:51:27
Django version 4.2.15, using settings ‘smartdoc.settings’
Starting development server at http://127.0.0.1:11636/
Quit the server with CTRL-BREAK.
2024-12-16 02:54:19 [log WARNING] Not Found: /
2024-12-16 02:54:19 [basehttp WARNING] “GET / HTTP/1.1” 404 15
2024-12-16 02:54:20 [log WARNING] Not Found: /favicon.ico
2024-12-16 02:54:20 [basehttp WARNING] “GET /favicon.ico HTTP/1.1” 404 15
后端python main.py dev celery:
(python3.11) C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main>python main.py dev celery
Building prefix dict from the default dictionary …
DEBUG:jieba:Building prefix dict from the default dictionary …
Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
DEBUG:jieba:Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
Loading model cost 0.661 seconds.
DEBUG:jieba:Loading model cost 0.661 seconds.
Prefix dict has been built successfully.
DEBUG:jieba:Prefix dict has been built successfully.
Operations to perform:
Apply all migrations: application, contenttypes, dataset, django_apscheduler, django_celery_beat, embedding, function_lib, setting, users
Running migrations:
No migrations to apply.
Your models in app(s): ‘dataset’, ‘function_lib’ have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
Building prefix dict from the default dictionary …
Loading model from cache C:\user\default\AppData\Local\Temp\jieba.cache
Loading model cost 0.589 seconds.
Prefix dict has been built successfully.
-------------- celery@LAPTOP-EHNEHMQ7 v5.4.0 (opalescent)
— ***** -----
– ******* ---- Windows-10-10.0.19045-SP0 2024-12-16 02:52:01
- *** — * —
- ** ---------- [config]
- ** ---------- .> app: MaxKB:0x14ffe353c10
- ** ---------- .> transport: sqla+sqlite:///C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main\data\celery_task\celery_db.sqlite3
- ** ---------- .> results: sqlite:///C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main\data\celery_task\celery_results.sqlite3
- *** — * — .> concurrency: 10 (thread)
– ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
— ***** -----
-------------- [queues]
.> celery exchange=celery(direct) key=celery
[tasks]
. celery:embedding_by_dataset
. celery:embedding_by_document
. celery:embedding_by_document_list
. celery:embedding_by_paragraph
. celery:embedding_by_paragraph_data_list
. celery:embedding_by_paragraph_list
. celery:generate_related_by_document
. celery:generate_related_by_paragraph_list
. celery:sync_web_dataset
. celery:sync_web_document
2024-12-16 02:52:01 C:\Users\Heruiming-\anaconda3\envs\python3.11\Lib\site-packages\celery\app\utils.py:203: CDeprecationWarning:
The ‘CELERY_ACKS_LATE’ setting is deprecated and scheduled for removal in
version 6.0.0. Use the task_acks_late instead
deprecated.warn(description=f’The {setting!r} setting’,
2024-12-16 02:52:01 Please run celery upgrade settings path/to/settings.py
to avoid these warnings and to allow a smoother upgrade to Celery 6.0.
2024-12-16 02:52:01 Connected to sqla+sqlite:///C:\Users\Heruiming-\Desktop\毕设资料\新代码\MaxKB-main\data\celery_task\celery_db.sqlite3
2024-12-16 02:52:01 celery@LAPTOP-EHNEHMQ7 ready.
以上是我启动的情况,但是现在打开http://localhost:3000/ui/ 还是没反应白屏的,有知道的兄弟吗