Youssouf Traore
commited on
Commit
·
7790ddf
1
Parent(s):
28a2a41
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ def extract_text(image):
|
|
20 |
|
21 |
return text
|
22 |
|
23 |
-
# Définir l'interface utilisateur
|
24 |
-
inputs = gr.
|
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",
|