Freak-ppa commited on
Commit
b4ce6db
·
verified ·
1 Parent(s): ff60056

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -108,7 +108,13 @@ def generate_image(prompt, image):
108
 
109
 
110
  if __name__ == "__main__":
111
- demo = gr.Interface(fn=generate_image, inputs=["text", "image"], outputs=["image"])
 
 
 
 
 
 
112
  demo.launch(debug=True)
113
  logger.debug('demo.launch()')
114
 
 
108
 
109
 
110
  if __name__ == "__main__":
111
+ demo = gr.Interface(fn=generate_image, inputs=[
112
+ "text",
113
+ gr.Image(image_mode='RGBA', type="numpy")
114
+ ],
115
+ outputs=[
116
+ gr.Image(type="numpy", image_mode='RGBA')
117
+ ])
118
  demo.launch(debug=True)
119
  logger.debug('demo.launch()')
120