alexliap commited on
Commit
49b7f9e
·
unverified ·
1 Parent(s): 6377a34

switch space to docker sdk

Browse files
Files changed (2) hide show
  1. .huggingface/space.yaml +1 -0
  2. Dockerfile +17 -0
.huggingface/space.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ sdk: docker
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start from an official Python image
2
+ FROM python:3.12-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy project files
8
+ COPY . /app
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Expose the Gradio port
14
+ EXPOSE 7860
15
+
16
+ # Start the Gradio app
17
+ CMD ["python", "app.py"]