change the file -> filepath
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ lang = gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'
|
|
66 |
ocr_version = gr.inputs.Dropdown(choices=['PP-OCRv3', 'PP-OCRv2', 'PP-OCR'], type="value", default='PP-OCRv3', label='ocr_version')
|
67 |
gr.Interface(
|
68 |
inference,
|
69 |
-
[gr.inputs.Image(type='
|
70 |
[gr.outputs.Image(type='pil', label='Output'), gr.outputs.Textbox(type='str', label='Prediction')],
|
71 |
title=title,
|
72 |
description=description,
|
|
|
66 |
ocr_version = gr.inputs.Dropdown(choices=['PP-OCRv3', 'PP-OCRv2', 'PP-OCR'], type="value", default='PP-OCRv3', label='ocr_version')
|
67 |
gr.Interface(
|
68 |
inference,
|
69 |
+
[gr.inputs.Image(type='filepath', label='Input'), "checkbox", "checkbox", lang, ocr_version],
|
70 |
[gr.outputs.Image(type='pil', label='Output'), gr.outputs.Textbox(type='str', label='Prediction')],
|
71 |
title=title,
|
72 |
description=description,
|