DigiP-AI commited on
Commit
160ac3b
·
verified ·
1 Parent(s): 9e0a74d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -112,7 +112,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
112
  with gr.Column(elem_id="app-container"):
113
  with gr.Row():
114
  with gr.Column(elem_id="prompt-container"):
115
- with gr.group:
116
  with gr.Row():
117
  text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
118
  with gr.Row():
@@ -159,17 +159,18 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
159
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
160
  clear_prompt =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
161
  clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
162
-
163
- with gr.Row():
164
- image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
165
- with gr.Row():
166
- clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
167
- clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
168
-
169
- gr.Examples(
170
- examples = examples,
171
- inputs = [text_prompt],
172
- )
 
173
 
174
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
175
 
 
112
  with gr.Column(elem_id="app-container"):
113
  with gr.Row():
114
  with gr.Column(elem_id="prompt-container"):
115
+ with gr.Group:
116
  with gr.Row():
117
  text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
118
  with gr.Row():
 
159
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
160
  clear_prompt =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
161
  clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
162
+
163
+ with gr.Group:
164
+ with gr.Row():
165
+ image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
166
+ with gr.Row():
167
+ clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
168
+ clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
169
+
170
+ gr.Examples(
171
+ examples = examples,
172
+ inputs = [text_prompt],
173
+ )
174
 
175
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
176