kayfahaarukku commited on
Commit
ccbcbc2
·
verified ·
1 Parent(s): 4d03169

Fixing reset button

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def interface_fn(prompt, negative_prompt, use_defaults, resolution, guidance_sca
56
  return image, seed, gr.update(value=seed)
57
 
58
  def reset_inputs():
59
- return gr.update(value=''), gr.update(value=''), gr.update(value=True), gr.update(value='1024x1024'), gr.update(value=7), gr.update(value=28), gr.update(value=0), gr.update(value=False)
60
 
61
  with gr.Blocks(title="UrangDiffusion 1.0 Demo", theme="NoCrypt/miku@1.2.1") as demo:
62
  gr.HTML(
 
56
  return image, seed, gr.update(value=seed)
57
 
58
  def reset_inputs():
59
+ return gr.update(value=''), gr.update(value=''), gr.update(value=True), gr.update(value='832x1216'), gr.update(value=7), gr.update(value=28), gr.update(value=0), gr.update(value=True)
60
 
61
  with gr.Blocks(title="UrangDiffusion 1.0 Demo", theme="NoCrypt/miku@1.2.1") as demo:
62
  gr.HTML(