xiemoxiaoshaso
commited on
Commit
·
84fd283
1
Parent(s):
7362a2e
Update ui_tempdir.py
Browse files- ui_tempdir.py +1 -1
ui_tempdir.py
CHANGED
@@ -57,7 +57,7 @@ def save_pil_to_file(pil_image, dir=None):
|
|
57 |
print(f'dir:{dir}')
|
58 |
file_obj = tempfile.NamedTemporaryFile(delete=False, suffix=".png", dir=dir)
|
59 |
print(f'file_obj.name:{file_obj.name}')
|
60 |
-
print(f'file_obj
|
61 |
#pil_image.save(file_obj, pnginfo=(metadata if use_metadata else None))
|
62 |
file_obj.name = './https://huggingface.co/datasets/xiemoxiaoshaso/image/blob/main/00008-1547306.jpg'
|
63 |
return file_obj
|
|
|
57 |
print(f'dir:{dir}')
|
58 |
file_obj = tempfile.NamedTemporaryFile(delete=False, suffix=".png", dir=dir)
|
59 |
print(f'file_obj.name:{file_obj.name}')
|
60 |
+
print(f'file_obj:{file_obj}')
|
61 |
#pil_image.save(file_obj, pnginfo=(metadata if use_metadata else None))
|
62 |
file_obj.name = './https://huggingface.co/datasets/xiemoxiaoshaso/image/blob/main/00008-1547306.jpg'
|
63 |
return file_obj
|