Fabrice-TIERCELIN commited on
Commit
6522853
1 Parent(s): 95e7508
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -164,14 +164,15 @@ def stage2_process(
164
  print("spt_linear_CFG: " + str(spt_linear_CFG))
165
  print("spt_linear_s_stage2: " + str(spt_linear_s_stage2))
166
  print("model_select: " + str(model_select))
167
- print("output_format: " + str(output_format))
168
  print("GPU time allocation: " + str(allocation) + " min")
 
169
 
170
  if output_format == "input":
171
  if noisy_image is None:
172
  output_format = "png"
173
  else:
174
  output_format = re.sub(r"^.*\.([^\.]+)$", "\1", noisy_image)
 
175
 
176
  if prompt is None:
177
  prompt = ""
@@ -612,7 +613,7 @@ with gr.Blocks() as interface:
612
  False,
613
  0.,
614
  "v0-Q",
615
- "input",
616
  5
617
  ],
618
  [
@@ -643,7 +644,7 @@ with gr.Blocks() as interface:
643
  False,
644
  0.,
645
  "v0-Q",
646
- "input",
647
  4
648
  ],
649
  [
@@ -674,7 +675,7 @@ with gr.Blocks() as interface:
674
  False,
675
  0.,
676
  "v0-Q",
677
- "input",
678
  4
679
  ],
680
  [
@@ -705,7 +706,7 @@ with gr.Blocks() as interface:
705
  False,
706
  0.,
707
  "v0-Q",
708
- "input",
709
  4
710
  ],
711
  ],
 
164
  print("spt_linear_CFG: " + str(spt_linear_CFG))
165
  print("spt_linear_s_stage2: " + str(spt_linear_s_stage2))
166
  print("model_select: " + str(model_select))
 
167
  print("GPU time allocation: " + str(allocation) + " min")
168
+ print("output_format: " + str(output_format))
169
 
170
  if output_format == "input":
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:
178
  prompt = ""
 
613
  False,
614
  0.,
615
  "v0-Q",
616
+ "png",
617
  5
618
  ],
619
  [
 
644
  False,
645
  0.,
646
  "v0-Q",
647
+ "png",
648
  4
649
  ],
650
  [
 
675
  False,
676
  0.,
677
  "v0-Q",
678
+ "png",
679
  4
680
  ],
681
  [
 
706
  False,
707
  0.,
708
  "v0-Q",
709
+ "png",
710
  4
711
  ],
712
  ],