akman12914
commited on
Commit
·
2eab57a
1
Parent(s):
481e106
visit add
Browse files
app.py
CHANGED
@@ -232,6 +232,19 @@ def sepia(input_img):
|
|
232 |
fig = draw_plot(pred_img, seg)
|
233 |
return fig
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
demo = gr.Interface(fn=sepia,
|
236 |
inputs=gr.Image(shape=(512, 512)),
|
237 |
outputs=['plot'],
|
|
|
232 |
fig = draw_plot(pred_img, seg)
|
233 |
return fig
|
234 |
|
235 |
+
def update(name):
|
236 |
+
return f"Welcome to Gradio, {name}!"
|
237 |
+
|
238 |
+
with gr.Blocks() as demo:
|
239 |
+
gr.Markdown("Start typing below and then click **방명록** to see the output.")
|
240 |
+
with gr.Row():
|
241 |
+
inp = gr.Textbox(placeholder="방문을 환영합니다. 성함이 어떻게 되세요?")
|
242 |
+
out = gr.Textbox()
|
243 |
+
btn = gr.Button("방명록")
|
244 |
+
btn.click(fn=update, inputs=inp, outputs=out)
|
245 |
+
|
246 |
+
demo.launch()
|
247 |
+
|
248 |
demo = gr.Interface(fn=sepia,
|
249 |
inputs=gr.Image(shape=(512, 512)),
|
250 |
outputs=['plot'],
|