Nekochu commited on
Commit
2c1c6de
·
1 Parent(s): a73932a

switch to Gradio SDK (no Docker needed for pure Python)

Browse files
Files changed (3) hide show
  1. Dockerfile +0 -13
  2. README.md +4 -1
  3. requirements.txt +11 -0
Dockerfile DELETED
@@ -1,13 +0,0 @@
1
- FROM python:3.11-slim
2
-
3
- RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
4
-
5
- RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu
6
- RUN pip install --no-cache-dir "gradio[mcp]" Pillow huggingface-hub safetensors einops numpy tqdm "diffusers[torch]" transformers
7
-
8
- WORKDIR /app
9
- COPY . .
10
-
11
- ENV PYTHONUNBUFFERED=1
12
- EXPOSE 7860
13
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,7 +3,10 @@ title: FE2E Depth + Normal (CPU)
3
  emoji: 🗺️
4
  colorFrom: blue
5
  colorTo: green
6
- sdk: docker
 
 
 
7
  pinned: false
8
  license: mit
9
  short_description: Depth + Normal estimation from a single image on CPU
 
3
  emoji: 🗺️
4
  colorFrom: blue
5
  colorTo: green
6
+ sdk: gradio
7
+ sdk_version: 6.14.0
8
+ app_file: app.py
9
+ python_version: "3.11"
10
  pinned: false
11
  license: mit
12
  short_description: Depth + Normal estimation from a single image on CPU
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torch
2
+ torchvision
3
+ gradio[mcp]
4
+ Pillow
5
+ huggingface-hub
6
+ safetensors
7
+ einops
8
+ numpy
9
+ tqdm
10
+ diffusers[torch]
11
+ transformers