davertor commited on
Commit
878ecf2
1 Parent(s): b95247b

fixed minor issues

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -221,9 +221,10 @@ try:
221
  colorizer = load_model(model_folder, st_color_option)
222
  print('after loading the model')
223
 
224
- except:
225
  colorizer = None
226
  print('Error while loading the model. Please refresh the page')
 
227
  st_title_message.markdown("**Error while loading the model. Please refresh the page**")
228
 
229
  if colorizer is not None:
 
221
  colorizer = load_model(model_folder, st_color_option)
222
  print('after loading the model')
223
 
224
+ except Exception as e:
225
  colorizer = None
226
  print('Error while loading the model. Please refresh the page')
227
+ print(e)
228
  st_title_message.markdown("**Error while loading the model. Please refresh the page**")
229
 
230
  if colorizer is not None: