Jagrut Thakare commited on
Commit
7217a56
·
1 Parent(s): 9be8aa9
Files changed (2) hide show
  1. Dockerfile +26 -0
  2. README.md +6 -8
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use slim Python 3.6 base image
2
+ FROM python:3.6-slim
3
+
4
+ # Set environment variables
5
+ ENV PORT=7860
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Install basic system dependencies (for common Python packages to build)
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ build-essential \
11
+ ffmpeg \
12
+ git \
13
+ curl \
14
+ libgl1 \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install Python packages from requirements.txt
18
+ COPY requirements.txt /app/requirements.txt
19
+ WORKDIR /app
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy all source code
23
+ COPY . /app
24
+
25
+ # Run the Gradio app (or your app entry point)
26
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,12 +1,10 @@
1
  ---
2
- title: Ghost
3
- emoji: 💻
4
- colorFrom: red
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.34.2
8
- app_file: app.py
9
- pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: GHOST
3
+ emoji: 📉
4
+ colorFrom: purple
5
+ colorTo: indigo
6
+ sdk: docker
7
+ pinned: true
 
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference