Update main.py
Browse files
main.py
CHANGED
@@ -16,7 +16,7 @@ def hello():
|
|
16 |
|
17 |
# Load the Whisper model
|
18 |
print("Loading Whisper model...\n", flush=True)
|
19 |
-
model = whisper.load_model("
|
20 |
print("\nWhisper model loaded.\n", flush=True)
|
21 |
|
22 |
# Get time of request
|
@@ -70,7 +70,7 @@ def transcribe(audio_path):
|
|
70 |
def transcribe_audio():
|
71 |
# Record the time when the request was received
|
72 |
request_received_time, _ = get_time()
|
73 |
-
print(f"Query {request_received_time}", flush=True)
|
74 |
|
75 |
if 'audio' not in request.files:
|
76 |
print("Error: No audio file provided", flush=True)
|
|
|
16 |
|
17 |
# Load the Whisper model
|
18 |
print("Loading Whisper model...\n", flush=True)
|
19 |
+
model = whisper.load_model("tiny")
|
20 |
print("\nWhisper model loaded.\n", flush=True)
|
21 |
|
22 |
# Get time of request
|
|
|
70 |
def transcribe_audio():
|
71 |
# Record the time when the request was received
|
72 |
request_received_time, _ = get_time()
|
73 |
+
print(f"Query: {request_received_time}", flush=True)
|
74 |
|
75 |
if 'audio' not in request.files:
|
76 |
print("Error: No audio file provided", flush=True)
|