Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,8 @@ iface = gr.Interface(
|
|
75 |
fn=predict_image,
|
76 |
inputs=gr.inputs.Image(label="Upload an Image", type="pil"),
|
77 |
outputs=gr.outputs.Textbox(label="Prediction", type="text"),
|
78 |
-
interpretation="html"
|
|
|
79 |
)
|
80 |
|
81 |
# Execute a interface Gradio
|
|
|
75 |
fn=predict_image,
|
76 |
inputs=gr.inputs.Image(label="Upload an Image", type="pil"),
|
77 |
outputs=gr.outputs.Textbox(label="Prediction", type="text"),
|
78 |
+
interpretation="html",
|
79 |
+
custom_interpretation_fn=lambda prediction: formatted_text
|
80 |
)
|
81 |
|
82 |
# Execute a interface Gradio
|