Spaces:
Sleeping
Sleeping
File size: 675 Bytes
947b71d c159d6d 026a257 c159d6d 947b71d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
import PIL.Image as Image
def process_image(image):
return "English text","Yoruba text", "Swahili text", "Twi text"
app = gr.Interface(
fn=process_image,
inputs = gr.Image(type="pil", label="Upload an Image"),
outputs = [
gr.Text(label="English: "),
gr.Text(label="Yoruba: "),
gr.Text(label="Swahili: "),
gr.Text(label="Twi: "),
],
title="Nutri Assistant App",
description="This app generates text for a given image related to nutrition in three low-resource languages",
examples =[["spaghetti.png"],
["cake.png"]],
)
if __name__ == "__main__":
app.launch()
|