Update main.py
Browse files
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()
|