Spaces:
Running
Running
kjerk
commited on
Commit
•
d0d5527
1
Parent(s):
aa5d6d0
Add rescale factor to filename initially
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ if ui_fileupload_rescale and ui_fileupload_rescale.name is not None:
|
|
59 |
lora_file_buffer.seek(0)
|
60 |
|
61 |
file_name = ui_fileupload_rescale.name.rsplit(".", 1)[0]
|
62 |
-
output_name = f"{file_name}
|
63 |
|
64 |
ui_fileupload_rescale.close()
|
65 |
del ui_fileupload_rescale
|
|
|
59 |
lora_file_buffer.seek(0)
|
60 |
|
61 |
file_name = ui_fileupload_rescale.name.rsplit(".", 1)[0]
|
62 |
+
output_name = f"{file_name}_rescaled_{new_scale_factor:.2f}.safetensors"
|
63 |
|
64 |
ui_fileupload_rescale.close()
|
65 |
del ui_fileupload_rescale
|