akopiler commited on
Commit
04ce381
·
verified ·
1 Parent(s): 97624ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,8 +66,8 @@ hh= 256 #int(frame_height/2)
66
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])) as demo:
67
  gr.Markdown("Start choosing an input and target image for the morphing then click **Submit** to watch the output in slow motion.")
68
  with gr.Row():
69
- inp = gr.Image(label="Input", value=Lecun, width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
70
- target = gr.Image(label="Target", value=Hinton, width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
71
  out = gr.Image(label="Output", width=ww, height=hh) #width=int(frame_width/2),height=int(frame_height/3)) # width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
72
  slider= gr.Slider(1, 1000, value=300, label="Steps", info="Choose between 1 and 1000")
73
  btn = gr.Button("Submit")
 
66
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])) as demo:
67
  gr.Markdown("Start choosing an input and target image for the morphing then click **Submit** to watch the output in slow motion.")
68
  with gr.Row():
69
+ inp = gr.Image(label="Input", value=Lecun, type="pil", width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
70
+ target = gr.Image(label="Target", value=Hinton, type="pil", width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
71
  out = gr.Image(label="Output", width=ww, height=hh) #width=int(frame_width/2),height=int(frame_height/3)) # width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
72
  slider= gr.Slider(1, 1000, value=300, label="Steps", info="Choose between 1 and 1000")
73
  btn = gr.Button("Submit")