m4k1-dev commited on
Commit ·
d91d8ef
1
Parent(s): 5405406
add return values to reset method
Browse files- app/app.py +2 -0
app/app.py
CHANGED
|
@@ -169,6 +169,8 @@ class ModelAPI:
|
|
| 169 |
os.remove(filepath)
|
| 170 |
except Exception as e:
|
| 171 |
print(f"Error removing {filepath}: {e}")
|
|
|
|
|
|
|
| 172 |
|
| 173 |
def run(self):
|
| 174 |
|
|
|
|
| 169 |
os.remove(filepath)
|
| 170 |
except Exception as e:
|
| 171 |
print(f"Error removing {filepath}: {e}")
|
| 172 |
+
return {"status": False}
|
| 173 |
+
return {"status": True}
|
| 174 |
|
| 175 |
def run(self):
|
| 176 |
|