cbensimon HF Staff commited on
Commit
da628cb
·
1 Parent(s): 856d03c

Demo touch-ups

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -75,4 +75,10 @@ def generate_image(prompt: str):
75
  yield images
76
 
77
 
78
- gr.Interface(generate_image, gr.Text(), gr.Gallery(rows=3, columns=3, height='60vh')).launch()
 
 
 
 
 
 
 
75
  yield images
76
 
77
 
78
+ gr.Interface(
79
+ fn=generate_image,
80
+ inputs=gr.Text(label="Prompt"),
81
+ outputs=gr.Gallery(rows=3, columns=3, height='60vh'),
82
+ examples=["A cat playing with a ball of yarn"],
83
+ cache_examples=False,
84
+ ).launch()