Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|