AshDavid12 commited on
Commit
0002733
·
1 Parent(s): 886bf7f

trying to build docker image

Browse files
.idea/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/ivrit-ai-streaming.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Poetry (ivrit-ai-streaming)" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Poetry (ivrit-ai-streaming)" project-jdk-type="Python SDK" />
7
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ivrit-ai-streaming.iml" filepath="$PROJECT_DIR$/.idea/ivrit-ai-streaming.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
Dockerfile ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
2
+
3
+ ENV PYTHON_VERSION=3.11
4
+
5
+ RUN export DEBIAN_FRONTEND=noninteractive \
6
+ && apt-get -qq update \
7
+ && apt-get -qq install --no-install-recommends \
8
+ python${PYTHON_VERSION} \
9
+ python${PYTHON_VERSION}-venv \
10
+ python3-pip \
11
+ libcublas11 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+
15
+ # Set up Python environment
16
+ RUN python3 -m pip install --upgrade pip
17
+
18
+ # Copy the requirements file and install Python packages
19
+ COPY requirements.txt .
20
+ RUN pip install -r requirements.txt
21
+
22
+ # Install the specific model using faster-whisper
23
+ RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
24
+
25
+ # Add your Python scripts
26
+ COPY infer.py .
27
+ COPY whisper_online.py .
28
+
29
+ EXPOSE 7860
30
+ # Run the infer.py script when the container starts
31
+ CMD ["python3", "-u", "/infer.py"]
32
+
33
+
34
+
35
+
36
+
37
+ # Include Python
38
+ #from python:3.11.1-buster
39
+ #
40
+ ## Define your working directory
41
+ #WORKDIR /
42
+ #
43
+ ## Install runpod
44
+ #COPY requirements.txt .
45
+ #RUN pip install -r requirements.txt
46
+ #
47
+ #RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
48
+ #
49
+ ## Add your file
50
+ #ADD infer.py .
51
+ #ADD whisper_online.py .
52
+ #
53
+ #ENV LD_LIBRARY_PATH="/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib:/usr/local/lib/python3.11/site-packages/nvidia/cublas/lib"
54
+ #
55
+ ## Call your file when your container starts
56
+ #CMD [ "python", "-u", "/infer.py" ]
poetry.lock ADDED
The diff for this file is too large to render. See raw diff