tu11p commited on
Commit
93f1f28
Β·
1 Parent(s): a039b37

Revise Gradio Interface

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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(fn=sepia,
 
 
 
 
 
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",