Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
import os
|
| 5 |
from simple_classifier import SimpleRockClassifier
|
| 6 |
|
| 7 |
-
|
| 8 |
classifier = SimpleRockClassifier()
|
| 9 |
|
| 10 |
def analyze_core(image):
|
|
@@ -32,7 +32,7 @@ def analyze_core(image):
|
|
| 32 |
except Exception as e:
|
| 33 |
response = f"## Error\nAn error occurred during analysis: {str(e)}"
|
| 34 |
|
| 35 |
-
|
| 36 |
if os.path.exists(temp_path):
|
| 37 |
os.remove(temp_path)
|
| 38 |
|
|
|
|
| 4 |
import os
|
| 5 |
from simple_classifier import SimpleRockClassifier
|
| 6 |
|
| 7 |
+
|
| 8 |
classifier = SimpleRockClassifier()
|
| 9 |
|
| 10 |
def analyze_core(image):
|
|
|
|
| 32 |
except Exception as e:
|
| 33 |
response = f"## Error\nAn error occurred during analysis: {str(e)}"
|
| 34 |
|
| 35 |
+
|
| 36 |
if os.path.exists(temp_path):
|
| 37 |
os.remove(temp_path)
|
| 38 |
|