Youssouf Traore commited on
Commit
7790ddf
·
1 Parent(s): 28a2a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ def extract_text(image):
20
 
21
  return text
22
 
23
- # Définir l'interface utilisateur Gradio
24
- inputs = gr.inputs.File(label="Télécharger une image", type="file")
25
  outputs = gr.outputs.Textbox()
26
  interface = gr.Interface(fn=extract_text, inputs=inputs, outputs=outputs,
27
  title="Extraction de texte à partir d'une image",
 
20
 
21
  return text
22
 
23
+ # Définir l'interface utilisateur
24
+ inputs = gr.Image(label='Upload an image',image_mode='L',tool='select',type='pil')
25
  outputs = gr.outputs.Textbox()
26
  interface = gr.Interface(fn=extract_text, inputs=inputs, outputs=outputs,
27
  title="Extraction de texte à partir d'une image",