akman12914 commited on
Commit
860e1cc
·
1 Parent(s): 3639967

demo update

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -232,15 +232,19 @@ def sepia(input_img):
232
  fig = draw_plot(pred_img, seg)
233
  return fig
234
 
235
- def update(name):
236
- return f"Welcome to Gradio, {name}!"
237
 
238
  demo = gr.Interface(fn=sepia,
239
  inputs=gr.Image(shape=(512, 512)),
240
  outputs=['plot'],
241
  examples=["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg"],
242
- allow_flagging='never')
 
243
 
 
 
 
 
244
  with gr.Blocks() as visit:
245
  gr.Markdown("Start typing below and then click **방명록** to see the output.")
246
  with gr.Row():
@@ -249,6 +253,4 @@ with gr.Blocks() as visit:
249
  btn = gr.Button("방명록")
250
  btn.click(fn=update, inputs=inp, outputs=out)
251
 
252
- visit.launch()
253
  demo.launch()
254
-
 
232
  fig = draw_plot(pred_img, seg)
233
  return fig
234
 
235
+
 
236
 
237
  demo = gr.Interface(fn=sepia,
238
  inputs=gr.Image(shape=(512, 512)),
239
  outputs=['plot'],
240
  examples=["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg"],
241
+ allow_flagging='never'
242
+ )
243
 
244
+ demo.launch()import gradio as gr
245
+
246
+ def update(name):
247
+ return f"Welcome to Gradio, {name}!"
248
  with gr.Blocks() as visit:
249
  gr.Markdown("Start typing below and then click **방명록** to see the output.")
250
  with gr.Row():
 
253
  btn = gr.Button("방명록")
254
  btn.click(fn=update, inputs=inp, outputs=out)
255
 
 
256
  demo.launch()