akshathmangudi commited on
Commit
bda4c4d
·
1 Parent(s): 7027b00

fixing prod issues

Browse files
Files changed (3) hide show
  1. .huggingface/space.yaml +2 -2
  2. Dockerfile +0 -36
  3. README.md +2 -2
.huggingface/space.yaml CHANGED
@@ -1,6 +1,6 @@
1
  title: Door and Window Detector
2
  colorFrom: gray
3
  colorTo: blue
4
- sdk: docker
5
- app_file: Dockerfile
6
  pinned: false
 
1
  title: Door and Window Detector
2
  colorFrom: gray
3
  colorTo: blue
4
+ sdk: streamlit
5
+ app_file: app.py
6
  pinned: false
Dockerfile DELETED
@@ -1,36 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- # Set environment variables
4
- ENV PYTHONDONTWRITEBYTECODE 1
5
- ENV PYTHONUNBUFFERED 1
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- git ffmpeg libsm6 libxext6 libgl1 && \
10
- apt-get clean && rm -rf /var/lib/apt/lists/*
11
-
12
- # Set working directory
13
- WORKDIR /app
14
-
15
- # Copy only relevant files
16
- COPY requirements.txt .
17
-
18
- # Install Python dependencies first (leverages Docker cache)
19
- RUN pip install --upgrade pip && pip install -r requirements.txt
20
-
21
- # Copy rest of the code
22
- COPY . .
23
-
24
- # Copy model weights
25
- COPY models/ models/
26
-
27
- # Streamlit config
28
- ENV STREAMLIT_SERVER_HEADLESS=true
29
- ENV STREAMLIT_SERVER_PORT=7860
30
- ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
31
-
32
- # Expose port
33
- EXPOSE 7860
34
-
35
- # ✅ FIX: Disable CORS to allow file upload on HF Spaces
36
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.enableCORS=false"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,7 +3,7 @@ title: Door and Window Detector
3
  colorFrom: gray
4
  colorTo: blue
5
  sdk: docker
6
- app_file: Dockerfile
7
  pinned: false
8
  ---
9
 
@@ -16,7 +16,7 @@ step 0: learn to read architecture plans to distinguish between doors and window
16
  2. train the model, explain the difference between yolov8n and yolov8s, show which one is better. (DONE)
17
  4. api development: will be a little hard. (DONE)
18
  5. full cleanup (DONE) + streamlit setup (DONE)
19
- 6. deployment onto hf spaces + docker.
20
 
21
  extras:
22
 
 
3
  colorFrom: gray
4
  colorTo: blue
5
  sdk: docker
6
+ app_file: app.py
7
  pinned: false
8
  ---
9
 
 
16
  2. train the model, explain the difference between yolov8n and yolov8s, show which one is better. (DONE)
17
  4. api development: will be a little hard. (DONE)
18
  5. full cleanup (DONE) + streamlit setup (DONE)
19
+ 6. deployment onto hf spaces + docker. (DONE)
20
 
21
  extras:
22