Omnibus commited on
Commit
9af1fae
·
verified ·
1 Parent(s): f4505b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -14,8 +14,12 @@ def load_models():
14
  this = api.list_models(search=model,limit=limit,cardData=True)
15
  model_details.append(this)
16
  except Exception as e:
17
- print(e)
18
- pass
 
 
 
 
19
  return loaded_model, model_details
20
  with gr.Blocks() as app:
21
  with gr.Row():
 
14
  this = api.list_models(search=model,limit=limit,cardData=True)
15
  model_details.append(this)
16
  except Exception as e:
17
+ loaded_model.append({"ERROR":e})
18
+ try:
19
+ this = api.list_models(search=model,limit=limit,cardData=True)
20
+ model_details.append(this)
21
+ except Exception as ee:
22
+ model_details.append({"ERROR":ee})
23
  return loaded_model, model_details
24
  with gr.Blocks() as app:
25
  with gr.Row():