sxela commited on
Commit
b61aba8
Β·
1 Parent(s): e5cbfdc
Files changed (1) hide show
  1. app.py +44 -30
app.py CHANGED
@@ -232,37 +232,51 @@ with demo:
232
  ![visitors](https://visitor-badge.glitch.me/badge?page_id=sxela_dd_custom_model_hf_space)
233
  """)
234
 
235
- with gr.Row():
236
- text = gr.Textbox(placeholder="Enter a description of a face", label='Text prompt')
237
- with gr.Row():
238
- with gr.Column():
239
- clip_guidance_scale = gr.Slider(minimum=0, maximum=3000, step=1, value=600, label="Prompt strength")
240
- tv_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Smoothness")
241
- range_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Compress color range")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
- with gr.Column():
244
- timestep_respacing = gr.Slider(minimum=25, maximum=100, step=1, value=50, label="timestep respacing")
245
- cutn = gr.Slider(minimum=4, maximum=32, step=1, value=16, label="cutn")
246
- seed = gr.Number(value=0, label="Seed")
247
- with gr.Row():
248
- with gr.Column():
249
- init_image = gr.Image(source="upload", label='initial image (optional)')
250
- init_scale = gr.Slider(minimum=0, maximum=45, step=1, value=10, label="Look like the image above")
251
-
252
- with gr.Column():
253
- image_prompts = gr.Image(source="upload", label='image prompt (optional)')
254
- skip_timesteps = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Look like the image above")
255
-
256
- with gr.Row():
257
- run_button = gr.Button("Run!")
258
- with gr.Row():
259
- gr.Markdown(
260
- """
261
- # Results
262
- """)
263
- with gr.Row():
264
- output_image = gr.Image(label='Output image', type='numpy')
265
- output_video = gr.Video(label='Output video')
266
 
267
  outputs=[output_image,output_video]
268
 
 
232
  ![visitors](https://visitor-badge.glitch.me/badge?page_id=sxela_dd_custom_model_hf_space)
233
  """)
234
 
235
+ with gr.Tabs():
236
+ with gr.TabItem("Main"):
237
+ with gr.Row():
238
+ text = gr.Textbox(placeholder="Enter a description of a face", label='Text prompt', value="A beautiful girl by Greg Rutkowski")
239
+ with gr.TabItem("Settings"):
240
+ with gr.Row():
241
+ # with gr.Group():
242
+ with gr.Column():
243
+ clip_guidance_scale = gr.Slider(minimum=0, maximum=3000, step=1, value=600, label="Prompt strength")
244
+ tv_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Smoothness")
245
+ range_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Compress color range")
246
+ # with gr.Group():
247
+ with gr.Column():
248
+ timestep_respacing = gr.Slider(minimum=25, maximum=100, step=1, value=25, label="Timestep respacing")
249
+ cutn = gr.Slider(minimum=4, maximum=32, step=1, value=16, label="cutn")
250
+ seed = gr.Number(value=0, label="Seed")
251
+ with gr.TabItem("Input images"):
252
+ with gr.Row():
253
+ # with gr.Group():
254
+ with gr.Column():
255
+ init_image = gr.Image(source="upload", label='initial image (optional)')
256
+ init_scale = gr.Slider(minimum=0, maximum=45, step=1, value=10, label="Look like the image above")
257
+ # with gr.Group():
258
+ with gr.Column():
259
+ image_prompts = gr.Image(source="upload", label='image prompt (optional)')
260
+ skip_timesteps = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Look like the image above")
261
 
262
+ with gr.Group():
263
+ with gr.Row():
264
+ gr.Markdown(
265
+ """
266
+ ### Press Run to Run :D
267
+ ----
268
+ """)
269
+ with gr.Row():
270
+ run_button = gr.Button("Run!")
271
+ with gr.Row():
272
+ gr.Markdown(
273
+ """
274
+ ### Results
275
+ ---
276
+ """)
277
+ with gr.Row():
278
+ output_image = gr.Image(label='Output image', type='numpy')
279
+ output_video = gr.Video(label='Output video')
 
 
 
 
 
280
 
281
  outputs=[output_image,output_video]
282