nutri2assistant / app.py
twiga2
interface
947b71d
raw
history blame
665 Bytes
import gradio as gr
import PIL.Image as Image
# Gradio interface
with gr.Blocks(theme=gr.themes.Soft()) 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()