gigant commited on
Commit
be783e7
·
verified ·
1 Parent(s): fedbc55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -156,11 +156,11 @@ def gen_ims(prompt, im_prompt=None, seed=None, n_steps=10, method='plms'):
156
  iface = gr.Interface(fn=gen_ims,
157
  inputs=[#gr.inputs.Slider(minimum=1, maximum=1, step=1, default=1,label="Number of images"),
158
  #gr.inputs.Slider(minimum=0, maximum=200, step=1, label='Random seed', default=0),
159
- gr.inputs.Textbox(label="Text prompt"),
160
- gr.inputs.Image(optional=True, label="Image prompt", type='filepath'),
161
  #gr.inputs.Slider(minimum=10, maximum=35, step=1, default=15,label="Number of steps")
162
  ],
163
- outputs=[gr.outputs.Image(type="pil", label="Generated Image")],
164
  examples=[["An iceberg, oil on canvas"],["A martian landscape, in the style of Monet"], ['A peaceful meadow, pastel crayons'], ["A painting of a vase of flowers"], ["A ship leaving the port in the summer, oil on canvas"]],
165
  title='Generate art from text prompts :',
166
  description="By typing a text prompt or providing an image prompt, and pressing submit you can generate images based on this prompt. The model was trained on images from the [WikiArt](https://huggingface.co/datasets/huggan/wikiart) dataset, comprised mostly of paintings.",
 
156
  iface = gr.Interface(fn=gen_ims,
157
  inputs=[#gr.inputs.Slider(minimum=1, maximum=1, step=1, default=1,label="Number of images"),
158
  #gr.inputs.Slider(minimum=0, maximum=200, step=1, label='Random seed', default=0),
159
+ gr.Textbox(label="Text prompt"),
160
+ gr.Image(optional=True, label="Image prompt", type='filepath'),
161
  #gr.inputs.Slider(minimum=10, maximum=35, step=1, default=15,label="Number of steps")
162
  ],
163
+ outputs=[gr.Image(type="pil", label="Generated Image")],
164
  examples=[["An iceberg, oil on canvas"],["A martian landscape, in the style of Monet"], ['A peaceful meadow, pastel crayons'], ["A painting of a vase of flowers"], ["A ship leaving the port in the summer, oil on canvas"]],
165
  title='Generate art from text prompts :',
166
  description="By typing a text prompt or providing an image prompt, and pressing submit you can generate images based on this prompt. The model was trained on images from the [WikiArt](https://huggingface.co/datasets/huggan/wikiart) dataset, comprised mostly of paintings.",