Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def txt_to_img(
|
|
| 99 |
pipe = MODELS[model_name].pipe_t2i
|
| 100 |
|
| 101 |
if torch.cuda.is_available():
|
| 102 |
-
pipe = pipe.to("
|
| 103 |
pipe.enable_xformers_memory_efficient_attention()
|
| 104 |
|
| 105 |
low_res_latents = pipe(
|
|
@@ -216,7 +216,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 216 |
with gr.Column(scale=100):
|
| 217 |
with gr.Row():
|
| 218 |
with gr.Column(scale=75):
|
| 219 |
-
up_res_image = gr.Image(label="Upscaled 1024px Image", shape=(1024,
|
| 220 |
with gr.Column(scale=25):
|
| 221 |
low_res_image = gr.Image(label="Original 512px Image", shape=(512, 512))
|
| 222 |
error_output = gr.Markdown()
|
|
|
|
| 99 |
pipe = MODELS[model_name].pipe_t2i
|
| 100 |
|
| 101 |
if torch.cuda.is_available():
|
| 102 |
+
pipe = pipe.to("cpu")
|
| 103 |
pipe.enable_xformers_memory_efficient_attention()
|
| 104 |
|
| 105 |
low_res_latents = pipe(
|
|
|
|
| 216 |
with gr.Column(scale=100):
|
| 217 |
with gr.Row():
|
| 218 |
with gr.Column(scale=75):
|
| 219 |
+
up_res_image = gr.Image(label="Upscaled 1024px Image", shape=(1024, 512))
|
| 220 |
with gr.Column(scale=25):
|
| 221 |
low_res_image = gr.Image(label="Original 512px Image", shape=(512, 512))
|
| 222 |
error_output = gr.Markdown()
|