import gradio as gr import PIL.Image as Image # Gradio interface with gr.Blocks() as app: Title=gr.Label("Nutri Assistant App") with gr.Row(): Title with gr.Row(): gr.Markdown( "This app generates text for a given image related to nutrition in three low-resource languages") with gr.Row(): inputs=[ gr.Image(type="pil", label="Upload an Image") ], with gr.Row(): outputs=[ gr.Text(label="English: "), gr.Text(label="Yoruba: "), gr.Text(label="Swahili: "), gr.Text(label="Twi: ") ] app.launch()