Spaces:
Runtime error
Runtime error
Commit
·
ebe3da3
1
Parent(s):
0e8f1bc
Updated Dockerfile and requirements for Hugging Face
Browse files- Dockerfile +1 -0
- Web_app/app.py +3 -1
- requirements.txt +2 -2
Dockerfile
CHANGED
@@ -22,6 +22,7 @@ COPY Web_app .
|
|
22 |
|
23 |
# Set environment variable to avoid matplotlib config errors
|
24 |
ENV MPLCONFIGDIR=/tmp
|
|
|
25 |
|
26 |
# Expose the port Flask runs on
|
27 |
EXPOSE 5000
|
|
|
22 |
|
23 |
# Set environment variable to avoid matplotlib config errors
|
24 |
ENV MPLCONFIGDIR=/tmp
|
25 |
+
ENV YOLO_CONFIG_DIR=/tmp
|
26 |
|
27 |
# Expose the port Flask runs on
|
28 |
EXPOSE 5000
|
Web_app/app.py
CHANGED
@@ -57,7 +57,9 @@ mp_drawing = mp.solutions.drawing_utils
|
|
57 |
mp_drawing_styles = mp.solutions.drawing_styles
|
58 |
|
59 |
# Load Whisper model for speech-to-text
|
60 |
-
|
|
|
|
|
61 |
|
62 |
# Variables to hold CSV data and other states between requests
|
63 |
original_data = None
|
|
|
57 |
mp_drawing_styles = mp.solutions.drawing_styles
|
58 |
|
59 |
# Load Whisper model for speech-to-text
|
60 |
+
import whisper
|
61 |
+
whisper_model = whisper.load_model("base") # ✅ This is correct!
|
62 |
+
|
63 |
|
64 |
# Variables to hold CSV data and other states between requests
|
65 |
original_data = None
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
absl-py==2.1.0
|
2 |
annotated-types==0.7.0
|
3 |
anyio==4.9.0
|
@@ -49,7 +50,7 @@ plotly==6.0.1
|
|
49 |
protobuf==4.25.6
|
50 |
psutil==7.0.0
|
51 |
py-cpuinfo==9.0.0
|
52 |
-
|
53 |
pycparser==2.22
|
54 |
pydantic==2.10.6
|
55 |
pydantic_core==2.27.2
|
@@ -79,6 +80,5 @@ ultralytics-thop==2.0.14
|
|
79 |
urllib3==2.3.0
|
80 |
Wave==0.0.2
|
81 |
Werkzeug==3.1.3
|
82 |
-
git+https://github.com/openai/whisper.git
|
83 |
zipp==3.21.0
|
84 |
zope.interface==7.2
|
|
|
1 |
+
git+https://github.com/openai/whisper.git
|
2 |
absl-py==2.1.0
|
3 |
annotated-types==0.7.0
|
4 |
anyio==4.9.0
|
|
|
50 |
protobuf==4.25.6
|
51 |
psutil==7.0.0
|
52 |
py-cpuinfo==9.0.0
|
53 |
+
PyAudio==0.2.14
|
54 |
pycparser==2.22
|
55 |
pydantic==2.10.6
|
56 |
pydantic_core==2.27.2
|
|
|
80 |
urllib3==2.3.0
|
81 |
Wave==0.0.2
|
82 |
Werkzeug==3.1.3
|
|
|
83 |
zipp==3.21.0
|
84 |
zope.interface==7.2
|