Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,13 @@ def process_model(model_id, q_method, latest, oauth_token: gr.OAuthToken | None)
|
|
84 |
print("Model pushed to Ollama library successfully!")
|
85 |
|
86 |
|
|
|
|
|
|
|
|
|
|
|
87 |
|
|
|
88 |
css="""/* Custom CSS to allow scrolling */
|
89 |
.gradio-container {overflow-y: auto;}
|
90 |
"""
|
|
|
84 |
print("Model pushed to Ollama library successfully!")
|
85 |
|
86 |
|
87 |
+
except Exception as e:
|
88 |
+
return (f"Error: {e}", "error.png")
|
89 |
+
finally:
|
90 |
+
shutil.rmtree(model_name, ignore_errors=True)
|
91 |
+
print("Folder cleaned up successfully!")
|
92 |
|
93 |
+
|
94 |
css="""/* Custom CSS to allow scrolling */
|
95 |
.gradio-container {overflow-y: auto;}
|
96 |
"""
|