Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,13 +108,13 @@ def generate_image(prompt, image):
|
|
| 108 |
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
demo.launch(debug=True)
|
| 119 |
logger.debug('demo.launch()')
|
| 120 |
|
|
|
|
| 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 |
|