Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def predict(image):
|
|
17 |
# Define the Gradio interface
|
18 |
iface = gr.Interface(
|
19 |
fn=predict,
|
20 |
-
inputs=gr.
|
21 |
outputs="text",
|
22 |
title="Thai Image-to-Text Prediction",
|
23 |
description="Upload an image, and the model will predict the text in the image.",
|
|
|
17 |
# Define the Gradio interface
|
18 |
iface = gr.Interface(
|
19 |
fn=predict,
|
20 |
+
inputs=gr.Image(type="pil"),
|
21 |
outputs="text",
|
22 |
title="Thai Image-to-Text Prediction",
|
23 |
description="Upload an image, and the model will predict the text in the image.",
|