Spaces:
Running
on
A10G
Running
on
A10G
MekkCyber
commited on
Commit
·
7bf7dc3
1
Parent(s):
2eaaab3
change rendering
Browse files
app.py
CHANGED
@@ -163,11 +163,11 @@ def quantize_and_save(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToke
|
|
163 |
quantized_model = quantize_model(model_name, quant_type_4, double_quant_4, compute_type_4, quant_storage_4, oauth_token)
|
164 |
return save_model(quantized_model, model_name, quant_type_4, double_quant_4, compute_type_4, quant_storage_4, profile.username, oauth_token, quantized_model_name, public)
|
165 |
except Exception as e :
|
166 |
-
|
167 |
return f"""
|
168 |
<div class="error-box">
|
169 |
<h3>❌ Error Occurred</h3>
|
170 |
-
<p>{
|
171 |
</div>
|
172 |
"""
|
173 |
|
|
|
163 |
quantized_model = quantize_model(model_name, quant_type_4, double_quant_4, compute_type_4, quant_storage_4, oauth_token)
|
164 |
return save_model(quantized_model, model_name, quant_type_4, double_quant_4, compute_type_4, quant_storage_4, profile.username, oauth_token, quantized_model_name, public)
|
165 |
except Exception as e :
|
166 |
+
error_message = str(e).replace('\n', '<br/>')
|
167 |
return f"""
|
168 |
<div class="error-box">
|
169 |
<h3>❌ Error Occurred</h3>
|
170 |
+
<p>{error_message}</p>
|
171 |
</div>
|
172 |
"""
|
173 |
|