Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def healthcheck():
|
|
23 |
#pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
24 |
#pipeline("file.wav")
|
25 |
return {"output":"OK"}
|
26 |
-
@app.
|
27 |
async def stt(file: str = UploadFile(...)):
|
28 |
#file_content = base64.b64decode(file)
|
29 |
file_content = await file.read()
|
|
|
23 |
#pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
24 |
#pipeline("file.wav")
|
25 |
return {"output":"OK"}
|
26 |
+
@app.post("/stt")
|
27 |
async def stt(file: str = UploadFile(...)):
|
28 |
#file_content = base64.b64decode(file)
|
29 |
file_content = await file.read()
|