Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
df9f76e
1
Parent(s):
d6f84ff
Hide items in log when images are removed.
Browse files- fooocus_version.py +1 -1
- modules/private_logger.py +3 -2
- update_log.md +4 -0
fooocus_version.py
CHANGED
@@ -1 +1 @@
|
|
1 |
-
version = '1.0.
|
|
|
1 |
+
version = '1.0.33'
|
modules/private_logger.py
CHANGED
@@ -17,7 +17,8 @@ def log(img, dic):
|
|
17 |
f.write(f"<p>All images do not contain any hidden data.</p>")
|
18 |
|
19 |
with open(html_name, 'a+') as f:
|
20 |
-
|
|
|
21 |
f.write(f"<p>{only_name}</p>\n")
|
22 |
i = 0
|
23 |
for k, v in dic:
|
@@ -29,7 +30,7 @@ def log(img, dic):
|
|
29 |
else:
|
30 |
f.write(f"{k}: <b>{v}</b></p>\n")
|
31 |
i += 1
|
32 |
-
f.write(f"<p><img src=\"{only_name}\" width=512></img></p>\n")
|
33 |
|
34 |
print(f'Image generated with private log at: {html_name}')
|
35 |
|
|
|
17 |
f.write(f"<p>All images do not contain any hidden data.</p>")
|
18 |
|
19 |
with open(html_name, 'a+') as f:
|
20 |
+
div_name = only_name.replace('.', '_')
|
21 |
+
f.write(f'<div id="{div_name}"><hr>\n')
|
22 |
f.write(f"<p>{only_name}</p>\n")
|
23 |
i = 0
|
24 |
for k, v in dic:
|
|
|
30 |
else:
|
31 |
f.write(f"{k}: <b>{v}</b></p>\n")
|
32 |
i += 1
|
33 |
+
f.write(f"<p><img src=\"{only_name}\" width=512 onerror=\"document.getElementById('{div_name}').style.display = 'none';\"></img></p></div>\n")
|
34 |
|
35 |
print(f'Image generated with private log at: {html_name}')
|
36 |
|
update_log.md
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
### 1.0.32
|
2 |
|
3 |
* Fooocus private log
|
|
|
1 |
+
### 1.0.33
|
2 |
+
|
3 |
+
* Hide items in log when images are removed.
|
4 |
+
|
5 |
### 1.0.32
|
6 |
|
7 |
* Fooocus private log
|