GitHub Actions
commited on
Commit
·
d795998
1
Parent(s):
96cdd42
🚀 Auto-deploy from GitHub Actions
Browse filesDeployed from: bpmbox/AUTOCREATE
Commit: 0d2b8cdffbc66846a9b3090a46c8a587fe47f626
Branch: main
Workflow: 🚀 Deploy to Hugging Face Space
Updated files:
- System workflow analysis notebook
- Core Python modules
- Controllers and routers
- Documentation and configs
app.py
CHANGED
@@ -8,6 +8,7 @@ app.py から asgi.py を起動してすべて統合
|
|
8 |
import os
|
9 |
import sys
|
10 |
from dotenv import load_dotenv
|
|
|
11 |
|
12 |
# 環境変数読み込み
|
13 |
load_dotenv()
|
@@ -26,8 +27,8 @@ if __name__ == "__main__":
|
|
26 |
print("� Gradio Chat: http://localhost:8000/gradio")
|
27 |
print("� API Docs: http://localhost:8000/docs")
|
28 |
|
29 |
-
#
|
30 |
-
|
31 |
sys.executable, '-m', 'uvicorn', 'mysite.asgi:app',
|
32 |
'--host', '0.0.0.0',
|
33 |
'--port', '8000',
|
|
|
8 |
import os
|
9 |
import sys
|
10 |
from dotenv import load_dotenv
|
11 |
+
import subprocess
|
12 |
|
13 |
# 環境変数読み込み
|
14 |
load_dotenv()
|
|
|
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',
|