Karin0616
commited on
Commit
ยท
dc50072
1
Parent(s):
1937e4b
roll back
Browse files
app.py
CHANGED
@@ -103,19 +103,25 @@ def sepia(input_img):
|
|
103 |
fig = draw_plot(pred_img, seg)
|
104 |
return fig
|
105 |
|
106 |
-
with gr.Blocks() as demo:
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
|
|
103 |
fig = draw_plot(pred_img, seg)
|
104 |
return fig
|
105 |
|
|
|
106 |
|
107 |
+
demo = gr.Interface(fn=sepia,
|
108 |
+
inputs=gr.Image(shape=(564,846)),
|
109 |
+
outputs=['plot'],
|
110 |
+
live=True,
|
111 |
+
examples=["city1.jpg","city2.jpg","city3.jpg"],
|
112 |
+
allow_flagging='never',
|
113 |
+
title="This is a machine learning activity project at Kyunggi University.",
|
114 |
+
theme="darkpeach",
|
115 |
+
css="""
|
116 |
+
body {
|
117 |
+
background-color: dark;
|
118 |
+
color: white; /* ํฐํธ ์์ ์์ */
|
119 |
+
font-family: Arial, sans-serif; /* ํฐํธ ํจ๋ฐ๋ฆฌ ์์ */
|
120 |
+
}
|
121 |
+
"""
|
122 |
+
|
123 |
+
)
|
124 |
+
|
125 |
+
|
126 |
+
demo.launch()
|
127 |
|