AshDavid12 commited on
Commit
544d523
·
1 Parent(s): 099edc3

take out keep alive

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. client.py +1 -1
Dockerfile CHANGED
@@ -28,4 +28,4 @@ RUN pip install --no-cache-dir -r requirements.txt
28
  COPY . .
29
 
30
  # Run FastAPI with Uvicorn
31
- CMD ["uvicorn", "infer:app", "--host", "0.0.0.0", "--port","7860","--timeout-keep-alive","300","--timeout-graceful-shutdown", "60"]
 
28
  COPY . .
29
 
30
  # Run FastAPI with Uvicorn
31
+ CMD ["uvicorn", "infer:app", "--host", "0.0.0.0", "--port","7860"]
client.py CHANGED
@@ -9,7 +9,7 @@ AUDIO_FILE_URL = "https://raw.githubusercontent.com/AshDavid12/hugging_face_ivri
9
 
10
 
11
  async def send_audio(websocket):
12
- buffer_size = 16 * 1024 #HAVE TO HAVE 512!!
13
  audio_buffer = bytearray()
14
 
15
  with requests.get(AUDIO_FILE_URL, stream=True, allow_redirects=False) as response:
 
9
 
10
 
11
  async def send_audio(websocket):
12
+ buffer_size = 512 * 1024 #HAVE TO HAVE 512!!
13
  audio_buffer = bytearray()
14
 
15
  with requests.get(AUDIO_FILE_URL, stream=True, allow_redirects=False) as response: