Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,11 +169,12 @@ css = """
|
|
| 169 |
with gr.Blocks(css=css) as demo:
|
| 170 |
|
| 171 |
with gr.Row():
|
|
|
|
| 172 |
with gr.Column():
|
| 173 |
-
gr.Markdown("<h1>模多多Stable Diffusion文生图大模型</h1>")
|
| 174 |
current_model = gr.Dropdown(label="选择模型", choices=list_models, value=list_models[1])
|
| 175 |
text_prompt = gr.Textbox(label="输入提示", placeholder="Example: a cute dog", lines=2)
|
| 176 |
-
generate_button = gr.Button("生成图像", variant='primary')
|
| 177 |
|
| 178 |
with gr.Column():
|
| 179 |
gr.Markdown("<h4>高级设置</h4>")
|
|
@@ -181,7 +182,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 181 |
negative_prompt = gr.Textbox(label="否定提示(可选)", placeholder="Example: blurry, unfocused", lines=2)
|
| 182 |
image_style = gr.Dropdown(label="选择风格", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="None style")
|
| 183 |
# Add more options if needed
|
| 184 |
-
|
|
|
|
|
|
|
| 185 |
with gr.Row():
|
| 186 |
image_output = gr.Image(type="pil", label="图像输出")
|
| 187 |
|
|
|
|
| 169 |
with gr.Blocks(css=css) as demo:
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
+
gr.Markdown("<h1>模多多Stable Diffusion文生图大模型</h1>")
|
| 173 |
with gr.Column():
|
| 174 |
+
#gr.Markdown("<h1>模多多Stable Diffusion文生图大模型</h1>")
|
| 175 |
current_model = gr.Dropdown(label="选择模型", choices=list_models, value=list_models[1])
|
| 176 |
text_prompt = gr.Textbox(label="输入提示", placeholder="Example: a cute dog", lines=2)
|
| 177 |
+
#generate_button = gr.Button("生成图像", variant='primary')
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
gr.Markdown("<h4>高级设置</h4>")
|
|
|
|
| 182 |
negative_prompt = gr.Textbox(label="否定提示(可选)", placeholder="Example: blurry, unfocused", lines=2)
|
| 183 |
image_style = gr.Dropdown(label="选择风格", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="None style")
|
| 184 |
# Add more options if needed
|
| 185 |
+
|
| 186 |
+
generate_button = gr.Button("生成图像", variant='primary')
|
| 187 |
+
|
| 188 |
with gr.Row():
|
| 189 |
image_output = gr.Image(type="pil", label="图像输出")
|
| 190 |
|