phenomenon1981 commited on
Commit
33ac91c
1 Parent(s): 07629ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -0
app.py CHANGED
@@ -81,6 +81,45 @@ with gr.Blocks() as myface:
81
  #run.click(send_it, inputs=[prompt], outputs=[output1, output2, output3, output4])
82
 
83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
85
 
86
  run.click(send_it1, inputs=[prompt], outputs=[output1])
 
81
  #run.click(send_it, inputs=[prompt], outputs=[output1, output2, output3, output4])
82
 
83
 
84
+ with gr.Tab("Options"):
85
+ with gr.Group():
86
+ neg_prompt = gr.Textbox(
87
+ label="Negative prompt",
88
+ placeholder="What to exclude from the image",
89
+ )
90
+
91
+ n_images = gr.Slider(
92
+ label="Images", value=1, minimum=1, maximum=4, step=1
93
+ )
94
+
95
+ with gr.Row():
96
+ guidance = gr.Slider(
97
+ label="Guidance scale", value=7.5, maximum=15
98
+ )
99
+ steps = gr.Slider(
100
+ label="Steps", value=25, minimum=2, maximum=75, step=1
101
+ )
102
+
103
+ with gr.Row():
104
+ width = gr.Slider(
105
+ label="Width",
106
+ value=512,
107
+ minimum=64,
108
+ maximum=1024,
109
+ step=8,
110
+ )
111
+ height = gr.Slider(
112
+ label="Height",
113
+ value=512,
114
+ minimum=64,
115
+ maximum=1024,
116
+ step=8,
117
+ )
118
+
119
+ seed = gr.Slider(
120
+ 0, 2147483647, label="Seed (0 = random)", value=0, step=1
121
+ )
122
+
123
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
124
 
125
  run.click(send_it1, inputs=[prompt], outputs=[output1])