Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/yifan0sun/BERTGradGraph
Browse files
server.py
CHANGED
@@ -140,9 +140,9 @@ def list_data():
|
|
140 |
|
141 |
|
142 |
|
143 |
-
"""
|
144 |
|
145 |
-
|
|
|
146 |
def purge_data():
|
147 |
base_path = Path("/data")
|
148 |
if not base_path.exists():
|
@@ -165,7 +165,7 @@ def purge_data():
|
|
165 |
"deleted": deleted,
|
166 |
"total": len(deleted)
|
167 |
}
|
168 |
-
|
169 |
|
170 |
|
171 |
|
|
|
140 |
|
141 |
|
142 |
|
|
|
143 |
|
144 |
+
|
145 |
+
@app.post("/purge_data_123456789")
|
146 |
def purge_data():
|
147 |
base_path = Path("/data")
|
148 |
if not base_path.exists():
|
|
|
165 |
"deleted": deleted,
|
166 |
"total": len(deleted)
|
167 |
}
|
168 |
+
|
169 |
|
170 |
|
171 |
|