yifan0sun commited on
Commit
74d3dae
·
2 Parent(s): c80ec80 4c888a8

Merge branch 'main' of https://huggingface.co/spaces/yifan0sun/BERTGradGraph

Browse files
Files changed (1) hide show
  1. server.py +3 -3
server.py CHANGED
@@ -140,9 +140,9 @@ def list_data():
140
 
141
 
142
 
143
- """
144
 
145
- @app.post("/purge_data")
 
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