Spaces:
Runtime error
Runtime error
fix runtime error
Browse files
app.py
CHANGED
@@ -334,11 +334,11 @@ with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
|
|
334 |
show_label=False
|
335 |
)
|
336 |
with gr.Accordion(label="Generation Parameters", open=False):
|
337 |
-
|
338 |
gr.Examples(
|
339 |
examples=config.examples,
|
340 |
inputs=prompt,
|
341 |
-
outputs=[result,
|
342 |
fn=lambda *args, **kwargs: generate(*args, use_upscaler=True, **kwargs),
|
343 |
cache_examples=CACHE_EXAMPLES,
|
344 |
)
|
@@ -387,7 +387,7 @@ with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
|
|
387 |
upscale_by,
|
388 |
add_quality_tags,
|
389 |
],
|
390 |
-
outputs=[result,
|
391 |
api_name="run",
|
392 |
)
|
393 |
|
|
|
334 |
show_label=False
|
335 |
)
|
336 |
with gr.Accordion(label="Generation Parameters", open=False):
|
337 |
+
gr_parameters = gr.JSON(label="parameters", show_label=False)
|
338 |
gr.Examples(
|
339 |
examples=config.examples,
|
340 |
inputs=prompt,
|
341 |
+
outputs=[result, gr_parameters],
|
342 |
fn=lambda *args, **kwargs: generate(*args, use_upscaler=True, **kwargs),
|
343 |
cache_examples=CACHE_EXAMPLES,
|
344 |
)
|
|
|
387 |
upscale_by,
|
388 |
add_quality_tags,
|
389 |
],
|
390 |
+
outputs=[result, gr_parameters],
|
391 |
api_name="run",
|
392 |
)
|
393 |
|