unclemusclez commited on
Commit
70b9a5b
·
verified ·
1 Parent(s): 3e294fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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
  """