Update app.py
Browse files
app.py
CHANGED
|
@@ -116,8 +116,7 @@ def predict(image_path, prompt=None):
|
|
| 116 |
demo = gr.Interface(
|
| 117 |
fn=predict,
|
| 118 |
inputs=[
|
| 119 |
-
|
| 120 |
-
gr.Image(type="filepath", label="Tải ảnh tài liệu lên"),
|
| 121 |
gr.Textbox(label="Gợi ý (tuỳ chọn)", placeholder="VD: Trích số hóa đơn")
|
| 122 |
],
|
| 123 |
outputs="text",
|
|
|
|
| 116 |
demo = gr.Interface(
|
| 117 |
fn=predict,
|
| 118 |
inputs=[
|
| 119 |
+
gr.Image(type="pil", label="Tải ảnh tài liệu lên"),
|
|
|
|
| 120 |
gr.Textbox(label="Gợi ý (tuỳ chọn)", placeholder="VD: Trích số hóa đơn")
|
| 121 |
],
|
| 122 |
outputs="text",
|