Spaces:
Sleeping
Sleeping
Revise Gradio Interface
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from matplotlib import gridspec
|
@@ -101,7 +103,12 @@ def sepia(input_img):
|
|
101 |
fig = draw_plot(pred_img, seg)
|
102 |
return fig
|
103 |
|
104 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
105 |
inputs=gr.Image(shape=(400, 600)),
|
106 |
outputs=['plot'],
|
107 |
examples=["city_1.jpg", "city_2.jpg", "city_3.jpg",
|
|
|
1 |
+
#-*- encoding: utf-8 -*-
|
2 |
+
|
3 |
import gradio as gr
|
4 |
|
5 |
from matplotlib import gridspec
|
|
|
103 |
fig = draw_plot(pred_img, seg)
|
104 |
return fig
|
105 |
|
106 |
+
demo = gr.Interface(title='Semantic Segmentation with Cityscape',
|
107 |
+
description='μμ μ΄λ―Έμ§μ λν΄ 19κ°μ§ ν΄λμ€λ‘ μλ―Έμ λΆν (Semantic segmentaion)μ μννλ Gradio κΈ°λ° νμ΄μ§μ
λλ€.',
|
108 |
+
layout='vertical',
|
109 |
+
theme='huggingface',
|
110 |
+
examples_per_page=6,
|
111 |
+
fn=sepia,
|
112 |
inputs=gr.Image(shape=(400, 600)),
|
113 |
outputs=['plot'],
|
114 |
examples=["city_1.jpg", "city_2.jpg", "city_3.jpg",
|