Asahina2K commited on
Commit
50c0853
1 Parent(s): ff2f35f

fix runtime error

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- gr_metadata = gr.JSON(label="parameters", show_label=False)
338
  gr.Examples(
339
  examples=config.examples,
340
  inputs=prompt,
341
- outputs=[result, gr_metadata],
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, gr_metadata],
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