Spaces:
Runtime error
Runtime error
Nirav Madhani
commited on
Commit
·
edcef43
1
Parent(s):
4756b8b
Install portaudio sudo mode and update requirements
Browse files- Dockerfile +3 -3
- requirements.txt +11 -128
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
FROM python:3.12.6
|
| 2 |
-
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
@@ -7,8 +7,8 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
-
|
| 11 |
-
RUN pip install
|
| 12 |
|
| 13 |
COPY --chown=user . /app
|
| 14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.12.6
|
| 2 |
+
RUN apt-get update && apt-get install -y portaudio19-dev
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
+
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
COPY --chown=user . /app
|
| 14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
|
@@ -1,138 +1,21 @@
|
|
| 1 |
-
aiofiles==23.2.1
|
| 2 |
-
aiohappyeyeballs==2.4.4
|
| 3 |
-
aiohttp==3.11.11
|
| 4 |
-
aiohttp-retry==2.9.1
|
| 5 |
-
aioice==0.9.0
|
| 6 |
-
aiortc==1.10.0
|
| 7 |
-
aiosignal==1.3.2
|
| 8 |
-
altair==5.5.0
|
| 9 |
annotated-types==0.7.0
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
certifi==2024.8.30
|
| 16 |
-
cffi==1.17.1
|
| 17 |
-
charset-normalizer==3.4.0
|
| 18 |
-
click==8.1.7
|
| 19 |
-
colorama==0.4.6
|
| 20 |
-
contourpy==1.3.1
|
| 21 |
-
cryptography==44.0.0
|
| 22 |
-
cycler==0.12.1
|
| 23 |
-
dnspython==2.7.0
|
| 24 |
-
exceptiongroup==1.2.0
|
| 25 |
-
fastapi==0.115.8
|
| 26 |
-
ffmpeg-python==0.2.0
|
| 27 |
-
ffmpy==0.5.0
|
| 28 |
-
filelock==3.17.0
|
| 29 |
-
fonttools==4.55.8
|
| 30 |
-
frozenlist==1.5.0
|
| 31 |
-
fsspec==2024.12.0
|
| 32 |
-
future==1.0.0
|
| 33 |
-
gitdb==4.0.11
|
| 34 |
-
GitPython==3.1.43
|
| 35 |
-
google-ai-generativelanguage==0.6.15
|
| 36 |
-
google-api-core==2.24.1
|
| 37 |
-
google-api-python-client==2.160.0
|
| 38 |
-
google-auth==2.37.0
|
| 39 |
-
google-auth-httplib2==0.2.0
|
| 40 |
-
google-crc32c==1.6.0
|
| 41 |
-
google-genai==0.2.2
|
| 42 |
-
google-generativeai==0.8.4
|
| 43 |
-
googleapis-common-protos==1.66.0
|
| 44 |
-
gradio==5.14.0
|
| 45 |
-
gradio_client==1.7.0
|
| 46 |
-
gradio_webrtc==0.0.30
|
| 47 |
-
grpcio==1.70.0
|
| 48 |
-
grpcio-status==1.70.0
|
| 49 |
-
h11==0.14.0
|
| 50 |
-
httpcore==1.0.7
|
| 51 |
-
httplib2==0.22.0
|
| 52 |
-
httpx==0.28.1
|
| 53 |
-
huggingface-hub==0.28.1
|
| 54 |
idna==3.10
|
| 55 |
-
ifaddr==0.2.0
|
| 56 |
-
importlib_resources==6.5.2
|
| 57 |
-
Jinja2==3.1.4
|
| 58 |
-
jsonschema==4.23.0
|
| 59 |
-
jsonschema-specifications==2024.10.1
|
| 60 |
-
keyboard==0.13.5
|
| 61 |
-
kiwisolver==1.4.8
|
| 62 |
-
markdown-it-py==3.0.0
|
| 63 |
-
MarkupSafe==2.1.5
|
| 64 |
-
matplotlib==3.10.0
|
| 65 |
-
mdurl==0.1.2
|
| 66 |
-
MouseInfo==0.1.3
|
| 67 |
mss==10.0.0
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
opencv-python==4.10.0.84
|
| 72 |
-
orjson==3.10.15
|
| 73 |
-
packaging==24.2
|
| 74 |
-
pandas==2.2.3
|
| 75 |
-
pillow==10.4.0
|
| 76 |
-
plotly==5.24.1
|
| 77 |
-
propcache==0.2.1
|
| 78 |
-
proto-plus==1.26.0
|
| 79 |
-
protobuf==5.29.2
|
| 80 |
-
pyarrow==18.1.0
|
| 81 |
pyasn1==0.6.1
|
| 82 |
pyasn1_modules==0.4.1
|
| 83 |
PyAudio==0.2.14
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
pydantic==2.10.3
|
| 87 |
-
pydantic_core==2.27.1
|
| 88 |
-
pydeck==0.9.1
|
| 89 |
-
pydub==0.25.1
|
| 90 |
-
pyee==12.1.1
|
| 91 |
-
PyGetWindow==0.0.9
|
| 92 |
-
Pygments==2.18.0
|
| 93 |
-
PyJWT==2.10.1
|
| 94 |
-
pylibsrtp==0.10.0
|
| 95 |
-
PyMsgBox==1.0.9
|
| 96 |
-
pyngrok==7.2.2
|
| 97 |
-
pyOpenSSL==25.0.0
|
| 98 |
-
pyparsing==3.2.1
|
| 99 |
-
pyperclip==1.9.0
|
| 100 |
-
PyRect==0.2.0
|
| 101 |
-
PyScreeze==1.0.1
|
| 102 |
-
python-dateutil==2.9.0.post0
|
| 103 |
-
python-dotenv==1.0.1
|
| 104 |
-
python-multipart==0.0.20
|
| 105 |
-
pytweening==1.2.0
|
| 106 |
-
pytz==2024.2
|
| 107 |
-
PyYAML==6.0.2
|
| 108 |
-
referencing==0.35.1
|
| 109 |
requests==2.32.3
|
| 110 |
-
rich==13.9.4
|
| 111 |
-
rpds-py==0.22.3
|
| 112 |
rsa==4.9
|
| 113 |
-
ruff==0.9.4
|
| 114 |
-
safehttpx==0.1.6
|
| 115 |
-
semantic-version==2.10.0
|
| 116 |
-
setuptools==75.8.0
|
| 117 |
-
shellingham==1.5.4
|
| 118 |
-
simpleaudio==1.0.4
|
| 119 |
-
six==1.17.0
|
| 120 |
-
smmap==5.0.1
|
| 121 |
-
sniffio==1.3.1
|
| 122 |
-
starlette==0.45.3
|
| 123 |
-
streamlit==1.41.1
|
| 124 |
-
tenacity==9.0.0
|
| 125 |
-
toml==0.10.2
|
| 126 |
-
tomlkit==0.13.2
|
| 127 |
-
tornado==6.4.2
|
| 128 |
-
tqdm==4.67.1
|
| 129 |
-
twilio==9.4.4
|
| 130 |
-
typer==0.15.1
|
| 131 |
typing_extensions==4.12.2
|
| 132 |
-
|
| 133 |
-
uritemplate==4.1.1
|
| 134 |
-
urllib3==2.2.3
|
| 135 |
-
uvicorn==0.34.0
|
| 136 |
-
watchdog==6.0.0
|
| 137 |
websockets==14.2
|
| 138 |
-
yarl==1.18.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
annotated-types==0.7.0
|
| 2 |
+
cachetools==5.5.1
|
| 3 |
+
certifi==2025.1.31
|
| 4 |
+
charset-normalizer==3.4.1
|
| 5 |
+
google-auth==2.38.0
|
| 6 |
+
google-genai==1.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
idna==3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
mss==10.0.0
|
| 9 |
+
numpy==2.2.2
|
| 10 |
+
opencv-python==4.11.0.86
|
| 11 |
+
pillow==11.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
pyasn1==0.6.1
|
| 13 |
pyasn1_modules==0.4.1
|
| 14 |
PyAudio==0.2.14
|
| 15 |
+
pydantic==2.10.6
|
| 16 |
+
pydantic_core==2.27.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
requests==2.32.3
|
|
|
|
|
|
|
| 18 |
rsa==4.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
typing_extensions==4.12.2
|
| 20 |
+
urllib3==2.3.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
websockets==14.2
|
|
|