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 55from typing import Dict
66import asyncio
77
8+ import src .common .config as config
9+
810async def setup_webserver () -> None :
911 """Setup web server configuration."""
10- # Placeholder for web server setup logic
1112 from src .modules .api import server
13+ # import src.modules.yolo_train
1214 await server ()
15+ pass
1316
1417async def setup_transporter () -> None :
1518 """Setup transporter configuration."""
16- # Placeholder for transporter setup logic
17- # import src.modules.
1819 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
1926
2027async def main () -> None :
2128 """Main application entry point."""
2229 try :
2330 print ("Start app..." )
31+
2432 # import src.modules.transporter
2533 task1 = asyncio .create_task (setup_webserver ())
2634 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 )
2837 print ("App started successfully." )
2938
3039
Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ description = "Add your description here"
55readme = " README.md"
66requires-python = " >=3.11"
77dependencies = [
8+ " aiokafka>=0.12.0" ,
89 " fastapi[standard]>=0.115.8" ,
10+ " gradio>=5.34.2" ,
11+ " gradio-webrtc>=0.0.31" ,
912 " ipykernel>=6.29.5" ,
1013 " matplotlib>=3.10.3" ,
1114 " numpy>=2.2.3" ,
15+ " opencv-python>=4.11.0.86" ,
1216 " pika>=1.3.2" ,
1317 " pytest>=8.3.4" ,
1418 " rabbitmq>=0.2.0" ,
19+ " redis>=6.2.0" ,
1520 " sentence-transformers>=4.1.0" ,
1621 " uvicorn>=0.34.0" ,
1722]
Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ in pkgs.mkShell {
2727 fi
2828 alias python='python3'
2929 alias dev1='python3 main.py'
30- alias dev='nodemon --exec python main.py --ext py --watch src/ '
30+ alias dev='nodemon'
3131
32-
3332 which python3
3433
3534 '' ;
You can’t perform that action at this time.
0 commit comments