Spaces:
Paused
Paused
Fabrice-TIERCELIN
commited on
Commit
•
ce5201f
1
Parent(s):
6522853
Fix regex
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ def stage2_process(
|
|
171 |
if noisy_image is None:
|
172 |
output_format = "png"
|
173 |
else:
|
174 |
-
output_format = re.sub(r"^.*\.([^\.]+)$", "\1", noisy_image)
|
175 |
print("final output_format: " + str(output_format))
|
176 |
|
177 |
if prompt is None:
|
|
|
171 |
if noisy_image is None:
|
172 |
output_format = "png"
|
173 |
else:
|
174 |
+
output_format = re.sub(r"^.*\.([^\.]+)$", r"\1", noisy_image)
|
175 |
print("final output_format: " + str(output_format))
|
176 |
|
177 |
if prompt is None:
|