Browse Source

fix delete model bug

wangsiyuan06 5 năm trước cách đây
mục cha
commit
c8c0b43531
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      paddlex/restful/app.py

+ 2 - 2
paddlex/restful/app.py

@@ -870,11 +870,11 @@ def model():
     if request.method == 'DELETE':
         if data['type'] == 'pretrained':
             from .model import delete_pretrained_model
-            ret = delete_pretrained_model(data, workspace)
+            ret = delete_pretrained_model(data, SD.workspace)
             return ret
         if data['type'] == 'exported':
             from .model import delete_exported_model
-            ret = delete_exported_model(data, workspace)
+            ret = delete_exported_model(data, SD.workspace)
             return ret