Spaces:
Runtime error
Runtime error
Fix bugs about showing error picture when processing model.
Browse files
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 |
-
|
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 */
|