Skip to content

Commit c0365b0

Browse files
committed
Revert HF changes, back to port 8000
1 parent 2b4045b commit c0365b0

3 files changed

Lines changed: 3 additions & 41 deletions

File tree

.gitattributes

Lines changed: 0 additions & 36 deletions
This file was deleted.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ RUN pip install --no-cache-dir uv && \
1010

1111
COPY . .
1212

13-
EXPOSE 7860
13+
EXPOSE 8000
1414

1515
ENV PYTHONUNBUFFERED=1
1616

17-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
17+
CMD ["python", "app.py"]

app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,4 @@ async def search(request: Request, query: str = Form(...)):
5353

5454

5555
if __name__ == "__main__":
56-
import os
57-
port = int(os.getenv("PORT", 7860))
58-
uvicorn.run(app, host="0.0.0.0", port=port)
56+
uvicorn.run(app, host="0.0.0.0", port=8000)

0 commit comments

Comments
 (0)