9prayer commited on
Commit
541ab15
·
verified ·
1 Parent(s): 25c0532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,12 +11,12 @@ def process(img_path):
11
  reader = easyocr.Reader(['en'])
12
  bounds = reader.readtext(img_path)
13
 
14
- return [img_path, pd.DataFrame(bounds).iloc[: , 1:]]
15
 
16
  title = '车架号识别展示'
17
  description = '拖拽图片到识别区开始分析'
18
  ip = gr.Image(sources = ['upload'], label = '上传图片', width = '100%', height = '40rem', type = 'filepath')
19
- op = [gr.Image(sources = None, label = '处理结果', width = '100%', height = '40rem', type = 'filepath'), gr.Dataframe(col_count = (1, 'fixed'), show_label = False)]
20
  css = """
21
  table.svelte-y11bhb.svelte-y11bhb { max-width: 100%; overflow-x: hidden; }
22
  thead.svelte-y11bhb.svelte-y11bhb { visibility: hidden; }
 
11
  reader = easyocr.Reader(['en'])
12
  bounds = reader.readtext(img_path)
13
 
14
+ return [img_path, pd.DataFrame(bounds).iloc[0,1]]
15
 
16
  title = '车架号识别展示'
17
  description = '拖拽图片到识别区开始分析'
18
  ip = gr.Image(sources = ['upload'], label = '上传图片', width = '100%', height = '40rem', type = 'filepath')
19
+ op = [gr.Image(sources = None, label = '处理结果', width = '100%', height = '40rem', type = 'filepath'), gr.Textbox()]
20
  css = """
21
  table.svelte-y11bhb.svelte-y11bhb { max-width: 100%; overflow-x: hidden; }
22
  thead.svelte-y11bhb.svelte-y11bhb { visibility: hidden; }