MahdiKamyabi commited on
Commit
ad50614
1 Parent(s): 1293711

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def sentence_builder(quantity, animal, place, activity_list, morning):
5
+ return f"""The {quantity} {animal}s went to the {place} where they {" and ".join(activity_list)} until the {"morning" if morning else "night"}"""
6
+
7
+ gr.Interface(fn=sentence_builder, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.inputs.Image(shape=(512, 512))).launch()