JoPmt commited on
Commit
f124c69
1 Parent(s): faeb036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -65,7 +65,11 @@ def chdr(apol,prompt,modil,los,stips,gaul):
65
  with open(tre, 'w') as f:
66
  json.dump(dobj, f)
67
  HfApi.upload_folder(repo_id="JoPmt/Tst_datast_imgs",folder_path="./tmpo",repo_type="dataset",path_in_repo="./",token=HF_TOKEN)
68
- shutil.rmtree('./tmpo')
 
 
 
 
69
  except:
70
  print("failed to umake obj")
71
 
 
65
  with open(tre, 'w') as f:
66
  json.dump(dobj, f)
67
  HfApi.upload_folder(repo_id="JoPmt/Tst_datast_imgs",folder_path="./tmpo",repo_type="dataset",path_in_repo="./",token=HF_TOKEN)
68
+ try:
69
+ del './tmpo/'+fnamo+'.json'
70
+ del './tmpo/'+fnamo+'.png'
71
+ except:
72
+ print("cant")
73
  except:
74
  print("failed to umake obj")
75