Ld75 commited on
Commit
3269c49
·
1 Parent(s): 3b53be4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.get("/stt")
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()