fix gradio issue
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ def inference(img):
|
|
| 23 |
title = '车架号识别展示'
|
| 24 |
description = '拖拽图片到识别区开始分析'
|
| 25 |
ip = [gr.Image(sources = ['upload'], label = '上传图片', width = "100%", height = "40rem")]
|
| 26 |
-
op = [gr.Image(sources = [], label = '处理结果', width = "100%", height = "40rem"), gr.Dataframe(col_count = 1, show_label = False)]
|
|
|
|
| 27 |
gif = gr.Interface(fn = inference, inputs = ip, outputs = op, title = title, description = description, batch = False, flagging_mode='never')
|
| 28 |
gif.launch()
|
|
|
|
| 23 |
title = '车架号识别展示'
|
| 24 |
description = '拖拽图片到识别区开始分析'
|
| 25 |
ip = [gr.Image(sources = ['upload'], label = '上传图片', width = "100%", height = "40rem")]
|
| 26 |
+
op = [gr.Image(sources = [], label = '处理结果', width = "100%", height = "40rem"), gr.Dataframe(col_count = (1, 'fixed'), show_label = False)]
|
| 27 |
+
css = '.table-container > .progress-text { display: none !important; } .table > .header-content { display: none !important; }'
|
| 28 |
gif = gr.Interface(fn = inference, inputs = ip, outputs = op, title = title, description = description, batch = False, flagging_mode='never')
|
| 29 |
gif.launch()
|