nurfarah57 commited on
Commit
6136d9d
·
verified ·
1 Parent(s): e3d7b9c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -54,7 +54,8 @@ async def transcribe(file: UploadFile = File(...)):
54
  return JSONResponse({"error": "No transcription result."}, status_code=400)
55
 
56
  cleaned_text = auto_punctuate(raw_text)
57
- return {"transcription": cleaned_text}
 
58
 
59
  except Exception as e:
60
  traceback.print_exc()
 
54
  return JSONResponse({"error": "No transcription result."}, status_code=400)
55
 
56
  cleaned_text = auto_punctuate(raw_text)
57
+ # return {"transcription": cleaned_text}
58
+ return {"text": cleaned_text}
59
 
60
  except Exception as e:
61
  traceback.print_exc()