DhruvSoni commited on
Commit
2e961e6
·
1 Parent(s): 997a59b

feat: Deploy Streamlit interface instead of FastAPI API on Hugging Face

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -4,4 +4,4 @@ COPY ./requirement.txt /code/requirements.txt
4
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
5
  COPY . .
6
  # Hugging Face runs on port 7860 by default
7
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
5
  COPY . .
6
  # Hugging Face runs on port 7860 by default
7
+ CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]