Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,11 +59,11 @@ def pred_func(image, prompt):
|
|
| 59 |
return control_image ,image
|
| 60 |
|
| 61 |
|
| 62 |
-
|
| 63 |
outputs=[gr.Image(label='output').style(height=512),
|
| 64 |
gr.Image(label='output').style(height=512)],
|
| 65 |
examples=example_sample if example_sample else None,
|
| 66 |
cache_examples = False
|
| 67 |
)
|
| 68 |
-
|
| 69 |
|
|
|
|
| 59 |
return control_image ,image
|
| 60 |
|
| 61 |
|
| 62 |
+
demo=gr.Interface(fn=pred_func, inputs=['image','text'],
|
| 63 |
outputs=[gr.Image(label='output').style(height=512),
|
| 64 |
gr.Image(label='output').style(height=512)],
|
| 65 |
examples=example_sample if example_sample else None,
|
| 66 |
cache_examples = False
|
| 67 |
)
|
| 68 |
+
demo.launch(share=False)
|
| 69 |
|