GitHub Actions commited on
Commit
08938d4
·
1 Parent(s): eb44c13

🚀 Auto-deploy from GitHub Actions

Browse files

Deployed from: bpmbox/AUTOCREATE
Commit: 9d91a7586daf573a16d8166db6ea6efe017ab735
Branch: main
Workflow: 🚀 Deploy to Hugging Face Space

Updated files:
- System workflow analysis notebook
- Core Python modules
- Controllers and routers
- Documentation and configs

Files changed (2) hide show
  1. app.py +10 -10
  2. requirements.txt +36 -4
app.py CHANGED
@@ -8,7 +8,6 @@ app.py から asgi.py を起動してすべて統合
8
  import os
9
  import sys
10
  from dotenv import load_dotenv
11
- import subprocess
12
 
13
  # 環境変数読み込み
14
  load_dotenv()
@@ -24,13 +23,14 @@ if __name__ == "__main__":
24
  print("🚀 Django ASGI + FastAPI + Gradio 統合アプリ起動中...")
25
  print("📡 メインURL: http://localhost:8000")
26
  print("🔧 Django Admin: http://localhost:8000/admin")
27
- print(" Gradio Chat: http://localhost:8000/gradio")
28
- print(" API Docs: http://localhost:8000/docs")
29
 
30
- # CLIコマンドとしてuvicornをサブプロセスで起動(CLI方式と同じ挙動)
31
- subprocess.run([
32
- sys.executable, '-m', 'uvicorn', 'mysite.asgi:app',
33
- '--host', '0.0.0.0',
34
- '--port', '8000',
35
- '--log-level', 'info'
36
- ])
 
 
8
  import os
9
  import sys
10
  from dotenv import load_dotenv
 
11
 
12
  # 環境変数読み込み
13
  load_dotenv()
 
23
  print("🚀 Django ASGI + FastAPI + Gradio 統合アプリ起動中...")
24
  print("📡 メインURL: http://localhost:8000")
25
  print("🔧 Django Admin: http://localhost:8000/admin")
26
+ print("💬 Gradio Chat: http://localhost:8000/gradio")
27
+ print("📋 API Docs: http://localhost:8000/docs")
28
 
29
+ # uvicornを直接実行(元のasgi.py)
30
+ import uvicorn
31
+ uvicorn.run(
32
+ "mysite.asgi:app",
33
+ host="0.0.0.0",
34
+ port=8000,
35
+ log_level="info"
36
+ )
requirements.txt CHANGED
@@ -5,16 +5,51 @@ supabase>=2.0.0
5
  psycopg2-binary>=2.9.0
6
  sqlalchemy>=2.0.0
7
 
 
 
 
 
 
 
 
 
 
 
 
8
  # API integrations
9
  openai>=1.0.0
10
  groq>=0.4.0
11
  huggingface-hub>=0.17.0
12
  langchain_groq>=0.1.0
 
13
 
14
  # Data processing
15
  pandas>=2.0.0
 
16
  json5>=0.9.0
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  # Testing
19
  pytest>=7.0.0
20
  pytest-asyncio>=0.21.0
@@ -22,15 +57,12 @@ pytest-asyncio>=0.21.0
22
  # Documentation generation
23
  mermaid-py>=0.3.0
24
 
25
- # Web framework (if needed)
26
- fastapi>=0.100.0
27
- uvicorn>=0.23.0
28
-
29
  # Utility libraries
30
  pydantic>=2.0.0
31
  httpx>=0.24.0
32
  aiofiles>=23.0.0
33
  aiohttp>=3.9.0
 
34
 
35
  # Development tools
36
  black>=23.0.0
 
5
  psycopg2-binary>=2.9.0
6
  sqlalchemy>=2.0.0
7
 
8
+ # Django framework
9
+ django>=4.2.0
10
+ whitenoise>=6.5.0
11
+
12
+ # FastAPI and ASGI
13
+ fastapi>=0.100.0
14
+ uvicorn>=0.23.0
15
+
16
+ # Gradio for AI interfaces
17
+ gradio>=4.0.0
18
+
19
  # API integrations
20
  openai>=1.0.0
21
  groq>=0.4.0
22
  huggingface-hub>=0.17.0
23
  langchain_groq>=0.1.0
24
+ langchain>=0.1.0
25
 
26
  # Data processing
27
  pandas>=2.0.0
28
+ numpy>=1.24.0
29
  json5>=0.9.0
30
 
31
+ # System monitoring
32
+ psutil>=5.9.0
33
+
34
+ # Machine Learning
35
+ torch>=2.0.0
36
+ torchvision>=0.15.0
37
+ torchaudio>=2.0.0
38
+ transformers>=4.30.0
39
+ datasets>=2.10.0
40
+ accelerate>=0.20.0
41
+
42
+ # AI services
43
+ anthropic>=0.3.0
44
+
45
+ # Visualization
46
+ matplotlib>=3.7.0
47
+ seaborn>=0.12.0
48
+ plotly>=5.15.0
49
+
50
+ # Web scraping
51
+ beautifulsoup4>=4.12.0
52
+
53
  # Testing
54
  pytest>=7.0.0
55
  pytest-asyncio>=0.21.0
 
57
  # Documentation generation
58
  mermaid-py>=0.3.0
59
 
 
 
 
 
60
  # Utility libraries
61
  pydantic>=2.0.0
62
  httpx>=0.24.0
63
  aiofiles>=23.0.0
64
  aiohttp>=3.9.0
65
+ python-multipart>=0.0.6
66
 
67
  # Development tools
68
  black>=23.0.0