taskswithcode commited on
Commit
9e845c7
·
1 Parent(s): 5686525
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def load_model(model_name,model_class,load_model_name):
96
  ret_model.init_model(load_model_name)
97
  assert(ret_model is not None)
98
  except Exception as e:
99
- st.error("Unable to load model:" + model_name + " " + load_model_name + " " + str(e))
100
  pass
101
  return ret_model
102
 
 
96
  ret_model.init_model(load_model_name)
97
  assert(ret_model is not None)
98
  except Exception as e:
99
+ st.error(f"Unable to load model class: {model_name} load_model_name: {load_model_name} {str(e)}")
100
  pass
101
  return ret_model
102