3v324v23 commited on
Commit
efa9cfe
·
1 Parent(s): 52b5151
Files changed (2) hide show
  1. Dockerfile +32 -0
  2. README.md +2 -4
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies including execstack
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1-mesa-glx \
8
+ libglib2.0-0 \
9
+ execstack \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements first for better caching
13
+ COPY requirements.txt .
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Fix onnxruntime executable stack issue
19
+ RUN find /usr/local/lib/python3.10/site-packages/onnxruntime -name "*.so" -exec execstack -c {} \; 2>/dev/null || true
20
+
21
+ # Copy application code
22
+ COPY . .
23
+
24
+ # Expose the port
25
+ EXPOSE 7860
26
+
27
+ # Set environment variables for HF Spaces
28
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
29
+ ENV GRADIO_SERVER_PORT=7860
30
+
31
+ # Run the application
32
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,14 +3,12 @@ title: OpenPose Preprocessor
3
  emoji: 🦴
4
  colorFrom: purple
5
  colorTo: blue
6
- sdk: gradio
7
- sdk_version: "4.44.0"
8
- python_version: "3.10"
9
- app_file: app.py
10
  pinned: false
11
  license: apache-2.0
12
  ---
13
 
 
14
  # 🦴 OpenPose Preprocessor for ControlNet
15
 
16
  A powerful pose detection preprocessor supporting multiple models with high customization options.
 
3
  emoji: 🦴
4
  colorFrom: purple
5
  colorTo: blue
6
+ sdk: docker
 
 
 
7
  pinned: false
8
  license: apache-2.0
9
  ---
10
 
11
+
12
  # 🦴 OpenPose Preprocessor for ControlNet
13
 
14
  A powerful pose detection preprocessor supporting multiple models with high customization options.