devilent2 commited on
Commit
9149806
1 Parent(s): 0f7bc3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -12,6 +12,8 @@ import requests
12
 
13
 
14
  DEFAULT_MODEL_NAME = "distil-whisper/distil-large-v3"
 
 
15
  BATCH_SIZE = 8
16
 
17
  print('start app')
@@ -97,7 +99,8 @@ def transcribe(audio_path, model_name):
97
 
98
  if audio_path is None:
99
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
100
-
 
101
  audio_path=audio_path.strip()
102
  model_name=model_name.strip()
103
 
 
12
 
13
 
14
  DEFAULT_MODEL_NAME = "distil-whisper/distil-large-v3"
15
+ DEFAULT_MODEL_NAME = "openai/whisper-large-v3"
16
+
17
  BATCH_SIZE = 8
18
 
19
  print('start app')
 
99
 
100
  if audio_path is None:
101
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
102
+ if model_name is None:
103
+ model_name=DEFAULT_MODEL_NAME
104
  audio_path=audio_path.strip()
105
  model_name=model_name.strip()
106