diff options
author | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-10-23 15:27:50 +0000 |
---|---|---|
committer | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-10-23 15:27:50 +0000 |
commit | 0523704dade0508bf3ae0c8cb799b1ae332d449b (patch) | |
tree | 18e67ad79811aeac3a63bc124cc37cadd2cece56 /modules/api/models.py | |
parent | 28e26c2bef217ae82eb9e980cceb3f67ef22e109 (diff) | |
download | stable-diffusion-webui-gfx803-0523704dade0508bf3ae0c8cb799b1ae332d449b.tar.gz stable-diffusion-webui-gfx803-0523704dade0508bf3ae0c8cb799b1ae332d449b.tar.bz2 stable-diffusion-webui-gfx803-0523704dade0508bf3ae0c8cb799b1ae332d449b.zip |
Update run_extras to use the temp filename
In batch mode run_extras tries to preserve the original file name of the
images. The problem is that this makes no sense since the user only gets
a list of images in the UI, trying to manually save them shows that this
images have random temp names. Also, trying to keep "orig_name" in the
API is a hassle that adds complexity to the consuming UI since the
client has to use (or emulate) an input (type=file) element in a form.
Using the normal file name not only doesn't change the output and
functionality in the original UI but also helps keep the API simple.
Diffstat (limited to 'modules/api/models.py')
0 files changed, 0 insertions, 0 deletions