EbukaGaus commited on
Commit
90ea714
·
1 Parent(s): 2c031fa
Files changed (3) hide show
  1. .env +0 -3
  2. Dockerfile +3 -3
  3. ebapi.py +1 -0
.env DELETED
@@ -1,3 +0,0 @@
1
- OPENAI_API_KEY=sk-ITAifGNB6-ro5R6H6zasjf8E5Ub01JVgPSzxKR8gnjT3BlbkFJyI7FNaLgTqYQBwGnQPBDsMhESPMFcjvdKpSpISfhsA
2
- #EXA_API_KEY="2c3ba2d5-1671-4488-8b2d-91bbcc20c6fa"
3
- TAVILY_API_KEY=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
 
 
 
 
Dockerfile CHANGED
@@ -17,9 +17,9 @@ RUN pip install --no-cache-dir -r requirements.txt
17
  # Copy the rest of the application source code into the container at /app
18
  COPY . .
19
 
20
- # Expose port 8000 to allow communication to/from the container
21
- EXPOSE 8000
22
 
23
  # Define the command to run the application
24
  # Use Gunicorn as the production server with Uvicorn workers
25
- CMD ["gunicorn", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "ebapi:app"]
 
17
  # Copy the rest of the application source code into the container at /app
18
  COPY . .
19
 
20
+ # Expose port 7860 to allow communication to/from the container
21
+ EXPOSE 7860
22
 
23
  # Define the command to run the application
24
  # Use Gunicorn as the production server with Uvicorn workers
25
+ CMD ["gunicorn", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "ebapi:app"]
ebapi.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import os
2
  import yaml
3
  from fastapi import FastAPI, HTTPException
 
1
+ #!/usr/bin/env python3
2
  import os
3
  import yaml
4
  from fastapi import FastAPI, HTTPException