Compare commits

...

2 Commits

Author SHA1 Message Date
ALIHAN DIKEL
6df7c2e9f5 update reqs 2025-03-10 15:35:09 +03:00
ALIHAN DIKEL
c5698cb6e0 refactor run script with env varsa 2025-03-10 15:34:58 +03:00
3 changed files with 62 additions and 3 deletions

View File

@@ -1,26 +1,65 @@
annotated-types==0.7.0
anyio==4.8.0
audioread==3.0.1
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
decorator==5.2.1
fastapi==0.115.11
ffmpeg-python==0.2.0
filelock==3.17.0
fsspec==2025.3.0
future==1.0.0
h11==0.14.0
httptools==0.6.4
huggingface-hub==0.29.2
idna==3.10
Jinja2==3.1.6
joblib==1.4.2
lazy_loader==0.4
librosa==0.10.2.post1
llvmlite==0.44.0
loguru==0.7.3
MarkupSafe==3.0.2
more-itertools==10.6.0
mpmath==1.3.0
msgpack==1.1.0
networkx==3.4.2
numba==0.61.0
numpy==2.1.3
packaging==24.2
pillow==11.1.0
platformdirs==4.3.6
pooch==1.8.2
pycparser==2.22
pydantic==2.10.6
pydantic_core==2.27.2
python-dotenv==1.0.1
python-multipart==0.0.20
PyYAML==6.0.2
regex==2024.11.6
requests==2.32.3
safetensors==0.5.3
scikit-learn==1.6.1
scipy==1.15.2
setuptools==75.8.0
sniffio==1.3.1
soundfile==0.13.1
soxr==0.5.0.post1
starlette==0.46.1
sympy==1.13.1
threadpoolctl==3.5.0
tokenizers==0.21.0
torch==2.6.0
tqdm==4.67.1
transformers==4.49.0
typing_extensions==4.12.2
urllib3==2.3.0
uvicorn==0.34.0
uvloop==0.21.0
watchfiles==1.0.4
websockets==15.0.1
wheel==0.45.1
whisper-openai==1.0.0
yt-dlp==2025.2.19

23
scripts/run_webapp.py Executable file
View File

@@ -0,0 +1,23 @@
import os
import subprocess
from dotenv import load_dotenv
load_dotenv("env")
# Get variables with defaults
PORT = os.getenv("PORT", "9999")
RELOAD = os.getenv("RELOAD", "True").lower() == "true"
# Build the command
cmd = [
"uvicorn",
"main:app",
"--host 0.0.0.0",
"--port", PORT
]
if RELOAD:
cmd.append("--reload")
subprocess.run(cmd)

View File

@@ -1,3 +0,0 @@
#!/bin/bash
uvicorn main:app --host 0.0.0.0 --port 9999 --reload