Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
43ef58c
1
Parent(s):
1d21861
image path change test
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def generate(prompt, quality_tags, neg_prompt, seed, scale, width, height, steps
|
|
125 |
|
126 |
def preview_ui():
|
127 |
with gr.Blocks(css='#preview_image { height: 100%;}'):
|
128 |
-
image = gr.Image(elem_id='preview_image', interactive=False, type='
|
129 |
info = gr.JSON(value={}, label="生成信息")
|
130 |
return image, info
|
131 |
|
|
|
125 |
|
126 |
def preview_ui():
|
127 |
with gr.Blocks(css='#preview_image { height: 100%;}'):
|
128 |
+
image = gr.Image(format='png', elem_id='preview_image', interactive=False, type='filepath', show_share_button=False)
|
129 |
info = gr.JSON(value={}, label="生成信息")
|
130 |
return image, info
|
131 |
|