multimodalart HF staff commited on
Commit
0e59848
1 Parent(s): 85e76ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -292,10 +292,13 @@ def bulk_upload(profile: Optional[gr.OAuthProfile], urls, link_civit=False, prog
292
  for url in urls:
293
  print(url)
294
  if(url):
295
- try:
296
- yield upload_civit_to_hf(profile, url, link_civit)
297
- except:
298
- gr.Info("Some error happened trying to parse that one")
 
 
 
299
  css = '''
300
  #login {
301
  font-size: 0px;
 
292
  for url in urls:
293
  print(url)
294
  if(url):
295
+ try:
296
+ upload_result = upload_civit_to_hf(profile, url, link_civit)
297
+ except:
298
+ gr.Info(f"Error uploading the model {link_civit}")
299
+ upload_result = f"{link_civit} skipped"
300
+
301
+ yield upload_result
302
  css = '''
303
  #login {
304
  font-size: 0px;