killian31 commited on
Commit
aca1d62
·
1 Parent(s): 40d69b4

Added Dockerfile and Hugging Face config

Browse files
Files changed (2) hide show
  1. .huggingface.yml +7 -0
  2. Dockerfile +24 -0
.huggingface.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: AudioVisualTranscription
3
+ app_file: app.py
4
+ sdk: gradio
5
+ sdk_version: 5.1.0
6
+ docker: true
7
+
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base Python image
2
+ FROM python:3.11
3
+
4
+ # Install system-level dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ ffmpeg \
7
+ imagemagick
8
+
9
+ # Install Poetry
10
+ RUN curl -sSL https://install.python-poetry.org | python3 - && \
11
+ export PATH="$HOME/.local/bin:$PATH"
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+
16
+ # Copy all project files into the container
17
+ COPY . /app
18
+
19
+ # Install Python dependencies using Poetry
20
+ RUN poetry config virtualenvs.create false && poetry install --no-root
21
+
22
+ # Command to run the Gradio app
23
+ CMD ["python", "app.py"]
24
+