Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ img_cap_en_ar = gr.Interface(
|
|
| 54 |
gr.HTML(label='Arabic Caption')],
|
| 55 |
title='Image Captioning | وصف الصورة',
|
| 56 |
description="Upload an image to generate an English & Arabic caption | قم برفع صورة وأرسلها ليظهر لك وصف للصورة",
|
| 57 |
-
examples =[["image_2.png"]]
|
| 58 |
)
|
| 59 |
|
| 60 |
|
|
@@ -88,7 +88,7 @@ text_recognition = gr.Interface(
|
|
| 88 |
outputs=[gr.Textbox(label='Extracted text'), gr.HTML(label= 'Translateted of Extracted text ')], # Output is text
|
| 89 |
title="Text Extraction and Translation | إستخراج النص وترجمتة",
|
| 90 |
description="Upload an image then Submet to extract text and translate it to Arabic| قم برفع الصورة وأرسلها ليظهر لك النص من الصورة",
|
| 91 |
-
examples =[["
|
| 92 |
)
|
| 93 |
|
| 94 |
# Load trocr model for handwritten text extraction
|
|
|
|
| 54 |
gr.HTML(label='Arabic Caption')],
|
| 55 |
title='Image Captioning | وصف الصورة',
|
| 56 |
description="Upload an image to generate an English & Arabic caption | قم برفع صورة وأرسلها ليظهر لك وصف للصورة",
|
| 57 |
+
examples =[["image_0.png"],["image_2.png"]]
|
| 58 |
)
|
| 59 |
|
| 60 |
|
|
|
|
| 88 |
outputs=[gr.Textbox(label='Extracted text'), gr.HTML(label= 'Translateted of Extracted text ')], # Output is text
|
| 89 |
title="Text Extraction and Translation | إستخراج النص وترجمتة",
|
| 90 |
description="Upload an image then Submet to extract text and translate it to Arabic| قم برفع الصورة وأرسلها ليظهر لك النص من الصورة",
|
| 91 |
+
examples =[["tx_image_0.png"], ["tx_image_2.png"]]
|
| 92 |
)
|
| 93 |
|
| 94 |
# Load trocr model for handwritten text extraction
|