akman12914
commited on
Commit
·
4e4e6af
1
Parent(s):
c0b3d2e
duplication delete
Browse files
app.py
CHANGED
|
@@ -235,6 +235,12 @@ def sepia(input_img):
|
|
| 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():
|
|
@@ -244,11 +250,4 @@ with gr.Blocks() as demo:
|
|
| 244 |
btn.click(fn=update, inputs=inp, outputs=out)
|
| 245 |
|
| 246 |
|
| 247 |
-
demo = gr.Interface(fn=sepia,
|
| 248 |
-
inputs=gr.Image(shape=(512, 512)),
|
| 249 |
-
outputs=['plot'],
|
| 250 |
-
examples=["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg"],
|
| 251 |
-
allow_flagging='never')
|
| 252 |
-
|
| 253 |
-
|
| 254 |
demo.launch()
|
|
|
|
| 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 demo:
|
| 245 |
gr.Markdown("Start typing below and then click **방명록** to see the output.")
|
| 246 |
with gr.Row():
|
|
|
|
| 250 |
btn.click(fn=update, inputs=inp, outputs=out)
|
| 251 |
|
| 252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
demo.launch()
|