Spaces:
Sleeping
Sleeping
AshDavid12
commited on
Commit
·
544d523
1
Parent(s):
099edc3
take out keep alive
Browse files- Dockerfile +1 -1
- 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"
|
|
|
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 =
|
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:
|