Youssouf Traore
commited on
Commit
·
dfe8f0f
1
Parent(s):
7ea78c9
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def extract_text(image):
|
|
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",
|
|
|
21 |
return text
|
22 |
|
23 |
# Définir l'interface utilisateur Gradio
|
24 |
+
inputs = gr.inputs.File(label="Télécharger une image", type="file", accept=".jpg,.jpeg,.png")
|
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",
|