wanchichen commited on
Commit
66ba863
·
verified ·
1 Parent(s): 30a6fae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -219,7 +219,8 @@ def start_warmup():
219
  try:
220
  for _ in dialogue_model.handle_ASR_selection(opt):
221
  continue
222
- except Exception:
 
223
  print("Removing " + opt + " from ASR options since it cannot be loaded.")
224
  ASR_options = ASR_options[:opt_count] + ASR_options[(opt_count + 1) :]
225
  remove+=1
@@ -230,7 +231,8 @@ def start_warmup():
230
  try:
231
  for _ in dialogue_model.handle_LLM_selection(opt):
232
  continue
233
- except Exception:
 
234
  print("Removing " + opt + " from LLM options since it cannot be loaded.")
235
  LLM_options = LLM_options[:opt_count] + LLM_options[(opt_count + 1) :]
236
  if opt == LLM_name:
@@ -240,7 +242,8 @@ def start_warmup():
240
  try:
241
  for _ in dialogue_model.handle_TTS_selection(opt):
242
  continue
243
- except Exception:
 
244
  print("Removing " + opt + " from TTS options since it cannot be loaded.")
245
  TTS_options = TTS_options[:opt_count] + TTS_options[(opt_count + 1) :]
246
  if opt == TTS_name:
 
219
  try:
220
  for _ in dialogue_model.handle_ASR_selection(opt):
221
  continue
222
+ except Exception as e:
223
+ print(e)
224
  print("Removing " + opt + " from ASR options since it cannot be loaded.")
225
  ASR_options = ASR_options[:opt_count] + ASR_options[(opt_count + 1) :]
226
  remove+=1
 
231
  try:
232
  for _ in dialogue_model.handle_LLM_selection(opt):
233
  continue
234
+ except Exception as e:
235
+ print(e)
236
  print("Removing " + opt + " from LLM options since it cannot be loaded.")
237
  LLM_options = LLM_options[:opt_count] + LLM_options[(opt_count + 1) :]
238
  if opt == LLM_name:
 
242
  try:
243
  for _ in dialogue_model.handle_TTS_selection(opt):
244
  continue
245
+ except Exception as e:
246
+ print(e)
247
  print("Removing " + opt + " from TTS options since it cannot be loaded.")
248
  TTS_options = TTS_options[:opt_count] + TTS_options[(opt_count + 1) :]
249
  if opt == TTS_name: