..
Browse files
app.py
CHANGED
|
@@ -107,6 +107,7 @@ def sepia(input_img):
|
|
| 107 |
# outputs=['plot'],
|
| 108 |
# examples=["22.jpg", "33.jpg"],
|
| 109 |
# allow_flagging='never')
|
|
|
|
| 110 |
demo = gr.Interface(
|
| 111 |
fn=sepia,
|
| 112 |
inputs=gr.Image(shape=(400, 600)),
|
|
@@ -118,6 +119,8 @@ demo = gr.Interface(
|
|
| 118 |
theme="huggingface",
|
| 119 |
live=True, # μ€μκ° μ
λ°μ΄νΈ νμ±ν
|
| 120 |
interpretation="default", # λλ 'none'μΌλ‘ μ€μ νμ¬ ν΄μ κΈ°λ₯ λΉνμ±ν
|
|
|
|
| 121 |
)
|
| 122 |
|
|
|
|
| 123 |
demo.launch()
|
|
|
|
| 107 |
# outputs=['plot'],
|
| 108 |
# examples=["22.jpg", "33.jpg"],
|
| 109 |
# allow_flagging='never')
|
| 110 |
+
|
| 111 |
demo = gr.Interface(
|
| 112 |
fn=sepia,
|
| 113 |
inputs=gr.Image(shape=(400, 600)),
|
|
|
|
| 119 |
theme="huggingface",
|
| 120 |
live=True, # μ€μκ° μ
λ°μ΄νΈ νμ±ν
|
| 121 |
interpretation="default", # λλ 'none'μΌλ‘ μ€μ νμ¬ ν΄μ κΈ°λ₯ λΉνμ±ν
|
| 122 |
+
layout="horizontal", # 'horizontal' λλ 'vertical'λ‘ μ€μ κ°λ₯
|
| 123 |
)
|
| 124 |
|
| 125 |
+
|
| 126 |
demo.launch()
|