File size: 371 Bytes
ad50614
 
 
 
 
 
 
1
2
3
4
5
6
7
import gradio as gr


def sentence_builder(quantity, animal, place, activity_list, morning):
    return f"""The {quantity} {animal}s went to the {place} where they {" and ".join(activity_list)} until the {"morning" if morning else "night"}"""

gr.Interface(fn=sentence_builder, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.inputs.Image(shape=(512, 512))).launch()