DHEIVER commited on
Commit
9b041f8
·
1 Parent(s): f227511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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