akopiler commited on
Commit
bb50ba3
·
verified ·
1 Parent(s): 9fa941d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -66,14 +66,10 @@ 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, 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=int(frame_width/2),height=int(frame_height/3)) # width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
72
-
73
- entrada = gr.Image(value=caminho_imagem_padrao, label="Imagem de entrada", type="pil")
74
- botao = gr.Button("Converter")
75
- saida = gr.Image(label="Imagem em escala de cinza")
76
-
77
  slider= gr.Slider(1, 1000, value=300, label="Steps", info="Choose between 1 and 1000")
78
  btn = gr.Button("Submit")
79
  btn.click(fn=morphing, inputs=[inp,target,slider], outputs=out)
 
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=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=int(frame_width/2),height=int(frame_height/3)) # width=ww, height=hh) # width=int(frame_width),height=int(frame_height))
72
+
 
 
 
 
73
  slider= gr.Slider(1, 1000, value=300, label="Steps", info="Choose between 1 and 1000")
74
  btn = gr.Button("Submit")
75
  btn.click(fn=morphing, inputs=[inp,target,slider], outputs=out)