Brianpuz commited on
Commit
55c154d
·
verified ·
1 Parent(s): 3a90123

Fix bugs about showing error picture when processing model.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -308,7 +308,7 @@ def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_rep
308
 
309
  return (f'<h1>✅ DONE</h1><br/>Repo: <a href="{new_repo_url}" target="_blank" style="text-decoration:underline">{repo_id}</a>', f"llama{np.random.randint(9)}.png")
310
  except Exception as e:
311
- raise (f'<h1>❌ ERROR</h1><br/><pre style="white-space:pre-wrap;">{escape(str(e))}</pre>', "error.png")
312
 
313
 
314
  css="""/* Custom CSS to allow scrolling */
 
308
 
309
  return (f'<h1>✅ DONE</h1><br/>Repo: <a href="{new_repo_url}" target="_blank" style="text-decoration:underline">{repo_id}</a>', f"llama{np.random.randint(9)}.png")
310
  except Exception as e:
311
+ return (f'<h1>❌ ERROR</h1><br/><pre style="white-space:pre-wrap;">{escape(str(e))}</pre>', "error.png")
312
 
313
 
314
  css="""/* Custom CSS to allow scrolling */