Nymbo commited on
Commit
e7c4130
1 Parent(s): 0824d60

whatever man im about to go to bed

Browse files
Files changed (1) hide show
  1. app.py +1 -38
app.py CHANGED
@@ -93,44 +93,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
93
  #stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
94
 
95
  gen_button.click(lambda s: gr.update(interactive = True), None)
96
-
97
- with gr.Tab("Advanced Settings"):
98
- with gr.Row():
99
- # Textbox for specifying elements to exclude from the image
100
- 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")
101
- with gr.Row():
102
- # Slider for selecting the image width
103
- width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
104
- # Slider for selecting the image height
105
- height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
106
- with gr.Row():
107
- # Slider for setting the number of sampling steps
108
- steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
109
- with gr.Row():
110
- # Slider for adjusting the CFG scale (guidance scale)
111
- cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
112
- with gr.Row():
113
- # Slider for adjusting the transformation strength
114
- strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
115
- with gr.Row():
116
- # Slider for setting the seed for reproducibility
117
- seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
118
- with gr.Row():
119
- # Radio buttons for selecting the sampling method
120
- method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
121
-
122
- gr.HTML(
123
- """
124
- <div style="text-align: center; max-width: 1200px; margin: 0 auto;">
125
- <div>
126
- <body>
127
- <div class="center"><p style="margin-bottom: 10px; color: #000000;">Scroll down to see more images and select models.</p>
128
- </div>
129
- </body>
130
- </div>
131
- </div>
132
- """
133
- )
134
  with gr.Row():
135
  output = [gr.Image(label = m, min_width=480) for m in default_models]
136
  current_models = [gr.Textbox(m, visible = False) for m in default_models]
 
93
  #stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
94
 
95
  gen_button.click(lambda s: gr.update(interactive = True), None)
96
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  with gr.Row():
98
  output = [gr.Image(label = m, min_width=480) for m in default_models]
99
  current_models = [gr.Textbox(m, visible = False) for m in default_models]