Spaces:
Runtime error
Runtime error
Commit
·
e042973
1
Parent(s):
f660159
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import json
|
|
5 |
import base64
|
6 |
import os
|
7 |
from io import BytesIO
|
|
|
8 |
import html
|
9 |
from PIL import Image
|
10 |
import re
|
@@ -394,7 +395,7 @@ with gr.Blocks(css=css) as demo:
|
|
394 |
hf_seed = gr.Number(label="Seed", value=-1)
|
395 |
|
396 |
with gr.Column(scale=2):
|
397 |
-
hf_image_output = gr.Image(show_label=False, type="
|
398 |
#hf_send_to_img2img = gr.Button(value="Send to img2img")
|
399 |
|
400 |
hf_text_button.click(hf_inference, inputs=[hf_prompt, hf_negative_prompt, hf_model, hf_steps, sampler, hf_cfg_scale, hf_width, hf_height,
|
|
|
5 |
import base64
|
6 |
import os
|
7 |
from io import BytesIO
|
8 |
+
import io
|
9 |
import html
|
10 |
from PIL import Image
|
11 |
import re
|
|
|
395 |
hf_seed = gr.Number(label="Seed", value=-1)
|
396 |
|
397 |
with gr.Column(scale=2):
|
398 |
+
hf_image_output = gr.Image(show_label=False, type="pil", interactive=False)
|
399 |
#hf_send_to_img2img = gr.Button(value="Send to img2img")
|
400 |
|
401 |
hf_text_button.click(hf_inference, inputs=[hf_prompt, hf_negative_prompt, hf_model, hf_steps, sampler, hf_cfg_scale, hf_width, hf_height,
|