sleepytaco commited on
Commit
59a279e
1 Parent(s): e01b77b

update number field to a slider

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def synth_image(image, epochs=10):
12
  demo = gr.Interface(
13
  fn=synth_image,
14
  inputs=[gr.Image(type="numpy"),
15
- gr.Number(label="Num epochs to optimize for", value=1, minimum=1, maximum=400)],
16
  outputs=[gr.Image(type="pil")],
17
  flagging_options=["blurry", "incorrect"],
18
  examples=[
 
12
  demo = gr.Interface(
13
  fn=synth_image,
14
  inputs=[gr.Image(type="numpy"),
15
+ gr.Slider(label="Num epochs to optimize for", value=1, minimum=1, maximum=400, step=1, info="Optimizing for higher epochs gives better results. However, note that since this is a CNN based texture synthesiszer, it can take upto 5-10mins per synthesis.")],
16
  outputs=[gr.Image(type="pil")],
17
  flagging_options=["blurry", "incorrect"],
18
  examples=[