Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def predict(dict, prompt="high quality, best quality", negative_prompt="", guida
|
|
45 |
guidance_scale=guidance_scale
|
46 |
).images
|
47 |
|
48 |
-
return output
|
49 |
|
50 |
|
51 |
css = '''
|
@@ -98,7 +98,7 @@ with image_blocks as demo:
|
|
98 |
''')
|
99 |
with gr.Row():
|
100 |
with gr.Column():
|
101 |
-
image = gr.Image(sources=['upload'],
|
102 |
with gr.Row(elem_id="prompt-container", equal_height=True):
|
103 |
with gr.Row():
|
104 |
prompt = gr.Textbox(placeholder="Your prompt (you can leave it empty if you only want the image prompt as input)", show_label=False, elem_id="prompt")
|
|
|
45 |
guidance_scale=guidance_scale
|
46 |
).images
|
47 |
|
48 |
+
return output[0] #, gr.update(visible=True)
|
49 |
|
50 |
|
51 |
css = '''
|
|
|
98 |
''')
|
99 |
with gr.Row():
|
100 |
with gr.Column():
|
101 |
+
image = gr.Image(sources=['upload'], elem_id="image_upload", type="pil", label="Upload", height=400)
|
102 |
with gr.Row(elem_id="prompt-container", equal_height=True):
|
103 |
with gr.Row():
|
104 |
prompt = gr.Textbox(placeholder="Your prompt (you can leave it empty if you only want the image prompt as input)", show_label=False, elem_id="prompt")
|