Spaces:
Sleeping
Sleeping
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() |