AshDavid12 commited on
Commit
251c69c
·
1 Parent(s): 7380009

trying to build simple trasncribe - testing

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -9
  2. requirements.txt +1 -0
Dockerfile CHANGED
@@ -1,16 +1,9 @@
1
  # Use an official Python runtime as a base image
2
- FROM python:3.9-slim
3
 
4
  # Set the working directory
5
- WORKDIR /app
6
 
7
- # Install system dependencies for soundfile and any other audio-related processing
8
- RUN apt-get update && \
9
- apt-get install -y libsndfile1 && \
10
- rm -rf /var/lib/apt/lists/*
11
-
12
- # Install dependencies for Hugging Face Spaces (git for model fetching)
13
- RUN apt-get install -y git
14
 
15
  # Copy the requirements.txt file and install the dependencies
16
  COPY requirements.txt .
 
1
  # Use an official Python runtime as a base image
2
+ from python:3.11.1-buster
3
 
4
  # Set the working directory
5
+ WORKDIR /
6
 
 
 
 
 
 
 
 
7
 
8
  # Copy the requirements.txt file and install the dependencies
9
  COPY requirements.txt .
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
  fastapi
2
  uvicorn
3
  torch
 
4
  transformers
5
  soundfile
 
1
  fastapi
2
  uvicorn
3
  torch
4
+ whisper
5
  transformers
6
  soundfile