Update main.py
Browse files
main.py
CHANGED
@@ -69,7 +69,7 @@ def transcribe(audio_path):
|
|
69 |
def transcribe_audio():
|
70 |
# Record the time when the request was received
|
71 |
request_received_time, _ = get_time()
|
72 |
-
print(f"Query {request_received_time}", flush=True)
|
73 |
|
74 |
if 'audio' not in request.files:
|
75 |
print("Error: No audio file provided", flush=True)
|
@@ -110,7 +110,7 @@ def transcribe_audio():
|
|
110 |
# Return the transcription, detected language, and timing information
|
111 |
#print(f" Transcription: {transcription}, Language: {language}, Processing Time: {transcription_duration}\n", flush=True)
|
112 |
print(f" \033[92mTranscription: {transcription}, Language: {language}, Processing Time: {transcription_duration}\033[0m\n", flush=True)
|
113 |
-
print(srt, flush=True)
|
114 |
return jsonify({
|
115 |
"transcription": transcription,
|
116 |
"language": language,
|
|
|
69 |
def transcribe_audio():
|
70 |
# Record the time when the request was received
|
71 |
request_received_time, _ = get_time()
|
72 |
+
print(f"Query:- {request_received_time}", flush=True)
|
73 |
|
74 |
if 'audio' not in request.files:
|
75 |
print("Error: No audio file provided", flush=True)
|
|
|
110 |
# Return the transcription, detected language, and timing information
|
111 |
#print(f" Transcription: {transcription}, Language: {language}, Processing Time: {transcription_duration}\n", flush=True)
|
112 |
print(f" \033[92mTranscription: {transcription}, Language: {language}, Processing Time: {transcription_duration}\033[0m\n", flush=True)
|
113 |
+
#print(srt, flush=True)
|
114 |
return jsonify({
|
115 |
"transcription": transcription,
|
116 |
"language": language,
|