neo7team commited on
Commit
105edc4
·
verified ·
1 Parent(s): 5e76ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -93,8 +93,8 @@ with gr.Blocks(css=css) as app:
93
  with gr.Accordion("Advanced Settings", open=False):
94
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
95
  with gr.Row():
96
- width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
97
- height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
98
  steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
99
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
100
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
@@ -113,4 +113,4 @@ with gr.Blocks(css=css) as app:
113
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
114
 
115
  # Launch the Gradio app
116
- app.launch(show_api=False, share=False)
 
93
  with gr.Accordion("Advanced Settings", open=False):
94
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
95
  with gr.Row():
96
+ width = gr.Slider(label="Width", value=1024, minimum=64, maximum=2048, step=32)
97
+ height = gr.Slider(label="Height", value=1024, minimum=64, maximum=2048, step=32)
98
  steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
99
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
100
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
 
113
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
114
 
115
  # Launch the Gradio app
116
+ app.launch(show_api=True, share=True)