AshDavid12 commited on
Commit
e909e6b
·
1 Parent(s): 9fdd371

added port 7860

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -3
  2. infer.py +0 -4
Dockerfile CHANGED
@@ -26,8 +26,6 @@ RUN pip install --no-cache-dir -r requirements.txt
26
 
27
  # Copy the current directory contents into the container at /app
28
  COPY . .
29
- # Expose port 8080 for FastAPI
30
- EXPOSE 8080
31
 
32
  # Run FastAPI with Uvicorn
33
- CMD ["uvicorn", "infer:app", "--host", "0.0.0.0"]
 
26
 
27
  # Copy the current directory contents into the container at /app
28
  COPY . .
 
 
29
 
30
  # Run FastAPI with Uvicorn
31
+ CMD ["uvicorn", "infer:app", "--host", "0.0.0.0", "--port","7860"]
infer.py CHANGED
@@ -104,8 +104,4 @@ def transcribe_core(audio_file):
104
  return ret
105
 
106
 
107
- # Make sure Uvicorn starts correctly when deployed
108
- if __name__ == "__main__":
109
- import uvicorn
110
 
111
- uvicorn.run(app, host="0.0.0.0", port=8080)
 
104
  return ret
105
 
106
 
 
 
 
107