Igor commited on
Commit
fb283a1
·
unverified ·
1 Parent(s): f142e73

Deploy: Update port to 7860 for Hugging Face Spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. server.py +1 -1
Dockerfile CHANGED
@@ -7,8 +7,8 @@ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- # Expose port 8000
11
- EXPOSE 8000
12
 
13
  # Run the server
14
  CMD ["python", "server.py"]
 
7
 
8
  COPY . .
9
 
10
+ # Expose port 7860
11
+ EXPOSE 7860
12
 
13
  # Run the server
14
  CMD ["python", "server.py"]
server.py CHANGED
@@ -160,4 +160,4 @@ def scan_text(req: ScanRequest):
160
 
161
  if __name__ == "__main__":
162
  import uvicorn
163
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
160
 
161
  if __name__ == "__main__":
162
  import uvicorn
163
+ uvicorn.run(app, host="0.0.0.0", port=7860)