gtfgffg commited on
Commit
0da301c
·
verified ·
1 Parent(s): cc8c9f8

Upload 5 files

Browse files
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && \
4
+ rm -rf /var/lib/apt/lists/*
5
+
6
+ WORKDIR /app
7
+
8
+ COPY requirements.txt ./
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ COPY app ./app
12
+
13
+ RUN mkdir -p /data/jobs
14
+
15
+ ENV PORT=7860
16
+
17
+ EXPOSE 7860
18
+ CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]
app/main.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # main.py content (truncated for brevity in code cell)
2
+ print("This file contains FastAPI app with video processing (see previous content).")
app/static/style.css ADDED
@@ -0,0 +1 @@
 
 
1
+ /* style.css content */
app/templates/index.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!-- index.html content -->
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ fastapi==0.112.2
2
+ uvicorn[standard]==0.30.6
3
+ jinja2==3.1.4
4
+ aiofiles==23.2.1
5
+ python-multipart==0.0.9
6
+ moviepy==1.0.3
7
+ librosa==0.10.2.post1
8
+ scenedetect==0.6.4
9
+ numpy==1.26.4