Prathamesh Sable commited on
Commit
101dc58
·
1 Parent(s): 5dcf3a7

added app file

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. app.py +1 -0
Dockerfile CHANGED
@@ -18,5 +18,8 @@ COPY --chown=user . /app
18
  # Make sure models directory exists
19
  RUN mkdir -p /app/models
20
 
21
- # Run the app
22
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
18
  # Make sure models directory exists
19
  RUN mkdir -p /app/models
20
 
21
+ # Make sure the script has execute permissions
22
+ RUN chmod +x /app/start.sh
23
+
24
+ # Run the app using port 7860 (standard for HF Spaces)
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
app.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from main import app