Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -179,7 +179,7 @@ css = """
|
|
| 179 |
width: 100%;
|
| 180 |
font-weight: bold;
|
| 181 |
}
|
| 182 |
-
#json_prompt{max-height:
|
| 183 |
"""
|
| 184 |
|
| 185 |
|
|
@@ -214,7 +214,8 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="violet")) as demo:
|
|
| 214 |
label="Structured JSON Prompt (editable)",
|
| 215 |
language="json",
|
| 216 |
wrap_lines=True,
|
| 217 |
-
lines=10
|
|
|
|
| 218 |
)
|
| 219 |
|
| 220 |
with gr.Row():
|
|
@@ -235,7 +236,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="violet")) as demo:
|
|
| 235 |
label="Structured JSON Prompt (editable)",
|
| 236 |
language="json",
|
| 237 |
wrap_lines=True,
|
| 238 |
-
elem_id="
|
| 239 |
)
|
| 240 |
|
| 241 |
with gr.Row():
|
|
@@ -257,7 +258,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="violet")) as demo:
|
|
| 257 |
width = gr.Slider(label="Width", minimum=832, maximum=1344, step=64, value=1024)
|
| 258 |
with gr.Row():
|
| 259 |
negative_prompt = gr.Textbox(label="negative prompt")
|
| 260 |
-
negative_prompt_json = gr.Code(label="json negative prompt", language="json")
|
| 261 |
|
| 262 |
with gr.Column(scale=1):
|
| 263 |
result = gr.Image(label="output")
|
|
|
|
| 179 |
width: 100%;
|
| 180 |
font-weight: bold;
|
| 181 |
}
|
| 182 |
+
#json_prompt, #json_prompt_refine{max-height: 800px}
|
| 183 |
"""
|
| 184 |
|
| 185 |
|
|
|
|
| 214 |
label="Structured JSON Prompt (editable)",
|
| 215 |
language="json",
|
| 216 |
wrap_lines=True,
|
| 217 |
+
lines=10,
|
| 218 |
+
elem_id="json_prompt"
|
| 219 |
)
|
| 220 |
|
| 221 |
with gr.Row():
|
|
|
|
| 236 |
label="Structured JSON Prompt (editable)",
|
| 237 |
language="json",
|
| 238 |
wrap_lines=True,
|
| 239 |
+
elem_id="json_prompt_refine"
|
| 240 |
)
|
| 241 |
|
| 242 |
with gr.Row():
|
|
|
|
| 258 |
width = gr.Slider(label="Width", minimum=832, maximum=1344, step=64, value=1024)
|
| 259 |
with gr.Row():
|
| 260 |
negative_prompt = gr.Textbox(label="negative prompt")
|
| 261 |
+
negative_prompt_json = gr.Code(label="json negative prompt", language="json", wrap_lines=True)
|
| 262 |
|
| 263 |
with gr.Column(scale=1):
|
| 264 |
result = gr.Image(label="output")
|