File tree Expand file tree Collapse file tree 4 files changed +616
-15
lines changed Expand file tree Collapse file tree 4 files changed +616
-15
lines changed Original file line number Diff line number Diff line change 5
5
from typing import Dict
6
6
import asyncio
7
7
8
+ import src .common .config as config
9
+
8
10
async def setup_webserver () -> None :
9
11
"""Setup web server configuration."""
10
- # Placeholder for web server setup logic
11
12
from src .modules .api import server
13
+ # import src.modules.yolo_train
12
14
await server ()
15
+ pass
13
16
14
17
async def setup_transporter () -> None :
15
18
"""Setup transporter configuration."""
16
- # Placeholder for transporter setup logic
17
- # import src.modules.
18
19
import src .modules .transporter
20
+ pass
21
+
22
+ async def setup_gradio () -> None :
23
+ """Setup transporter configuration."""
24
+ # import src.modules.gradio_app
25
+ pass
19
26
20
27
async def main () -> None :
21
28
"""Main application entry point."""
22
29
try :
23
30
print ("Start app..." )
31
+
24
32
# import src.modules.transporter
25
33
task1 = asyncio .create_task (setup_webserver ())
26
34
task2 = asyncio .create_task (setup_transporter ())
27
- await asyncio .gather (task1 , task2 )
35
+ task3 = asyncio .create_task (setup_gradio ())
36
+ await asyncio .gather (task1 , task2 , task3 )
28
37
print ("App started successfully." )
29
38
30
39
Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ description = "Add your description here"
5
5
readme = " README.md"
6
6
requires-python = " >=3.11"
7
7
dependencies = [
8
+ " aiokafka>=0.12.0" ,
8
9
" fastapi[standard]>=0.115.8" ,
10
+ " gradio>=5.34.2" ,
11
+ " gradio-webrtc>=0.0.31" ,
9
12
" ipykernel>=6.29.5" ,
10
13
" matplotlib>=3.10.3" ,
11
14
" numpy>=2.2.3" ,
15
+ " opencv-python>=4.11.0.86" ,
12
16
" pika>=1.3.2" ,
13
17
" pytest>=8.3.4" ,
14
18
" rabbitmq>=0.2.0" ,
19
+ " redis>=6.2.0" ,
15
20
" sentence-transformers>=4.1.0" ,
16
21
" uvicorn>=0.34.0" ,
17
22
]
Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ in pkgs.mkShell {
27
27
fi
28
28
alias python='python3'
29
29
alias dev1='python3 main.py'
30
- alias dev='nodemon --exec python main.py --ext py --watch src/ '
30
+ alias dev='nodemon'
31
31
32
-
33
32
which python3
34
33
35
34
'' ;
You can’t perform that action at this time.
0 commit comments