Spaces:
Runtime error
Runtime error
fix app
Browse files
app.py
CHANGED
|
@@ -168,7 +168,7 @@ def sample(prompt):
|
|
| 168 |
|
| 169 |
# Show the output
|
| 170 |
image = get_images(up_samples)
|
| 171 |
-
image = to_base64(image)
|
| 172 |
# return {"image": image}
|
| 173 |
return image
|
| 174 |
|
|
@@ -184,7 +184,7 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.102
|
|
| 184 |
examples =["Eiffel tower"]
|
| 185 |
|
| 186 |
iface = gr.Interface(fn=sample,
|
| 187 |
-
inputs=gr.inputs.
|
| 188 |
outputs=gr.outputs.Image(type="pil", label="Model input + completions"),
|
| 189 |
title=title,
|
| 190 |
description=description,
|
|
|
|
| 168 |
|
| 169 |
# Show the output
|
| 170 |
image = get_images(up_samples)
|
| 171 |
+
# image = to_base64(image)
|
| 172 |
# return {"image": image}
|
| 173 |
return image
|
| 174 |
|
|
|
|
| 184 |
examples =["Eiffel tower"]
|
| 185 |
|
| 186 |
iface = gr.Interface(fn=sample,
|
| 187 |
+
inputs=gr.inputs.Textbox(label='What would you like to see?'),
|
| 188 |
outputs=gr.outputs.Image(type="pil", label="Model input + completions"),
|
| 189 |
title=title,
|
| 190 |
description=description,
|