Spaces:
Sleeping
Sleeping
File size: 665 Bytes
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 27 28 29 30 31 32 |
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()
|