CJR61 Claude Sonnet 4.6 commited on
Commit
16c1df2
·
1 Parent(s): 10412fe

Configure for Hugging Face Spaces Docker deployment

Browse files

- Add HF Space metadata header to README.md (sdk: docker, app_port: 7860)
- Change exposed port from 8000 to 7860 (HF Spaces requirement)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. Dockerfile +2 -3
  2. README.md +12 -2
Dockerfile CHANGED
@@ -37,8 +37,7 @@ RUN set -eux; \
37
 
38
 
39
  # Expose the application's port
40
- EXPOSE 8000
41
 
42
  # Start the FastAPI application
43
- # ENTRYPOINT ["sh", "-c", "python start_services.py || exit 1"]
44
- CMD ["python","-m","uvicorn","app.main:app","--host","0.0.0.0","--port","8000"]
 
37
 
38
 
39
  # Expose the application's port
40
+ EXPOSE 7860
41
 
42
  # Start the FastAPI application
43
+ CMD ["python","-m","uvicorn","app.main:app","--host","0.0.0.0","--port","7860"]
 
README.md CHANGED
@@ -1,2 +1,12 @@
1
- # api_pig
2
- For pig api.
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: papi_cc
3
+ emoji: 🐷
4
+ colorFrom: pink
5
+ colorTo: blue
6
+ sdk: docker
7
+ app_port: 7860
8
+ pinned: false
9
+ ---
10
+
11
+ # papi_cc
12
+ Pig pathogen image classification API (bacteria / virus / None).