Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -115,11 +115,6 @@ def get_image(height, width, seed, prompt, cfg, timesteps, stage_a_tiled):
|
|
115 |
#print('finished! Results ')
|
116 |
|
117 |
|
118 |
-
def process_examples(prompt):
|
119 |
-
# Get inference from the function
|
120 |
-
output_img = get_image(height=2304, width=4096, seed=123, prompt=prompt, cfg=4, timesteps=20, stage_a_tiled=False)
|
121 |
-
return output_img
|
122 |
-
|
123 |
with gr.Blocks() as demo:
|
124 |
with gr.Column(elem_id="col-container"):
|
125 |
gr.Markdown("<h1><center>UltraPixel: Advancing Ultra-High-Resolution Image Synthesis to New Peaks </center></h1>")
|
@@ -199,8 +194,6 @@ with gr.Blocks() as demo:
|
|
199 |
],
|
200 |
inputs=[prompt],
|
201 |
outputs=[output_img],
|
202 |
-
fn=process_examples,
|
203 |
-
cache_examples=True,
|
204 |
examples_per_page=5
|
205 |
)
|
206 |
|
|
|
115 |
#print('finished! Results ')
|
116 |
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
with gr.Blocks() as demo:
|
119 |
with gr.Column(elem_id="col-container"):
|
120 |
gr.Markdown("<h1><center>UltraPixel: Advancing Ultra-High-Resolution Image Synthesis to New Peaks </center></h1>")
|
|
|
194 |
],
|
195 |
inputs=[prompt],
|
196 |
outputs=[output_img],
|
|
|
|
|
197 |
examples_per_page=5
|
198 |
)
|
199 |
|