Ashoka74 commited on
Commit
21e7b2d
1 Parent(s): 57dcba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -697,8 +697,8 @@ quick_subjects = [[x] for x in quick_subjects]
697
 
698
 
699
  class BGSource(Enum):
700
- UPLOAD = "Use Background Image"
701
- UPLOAD_FLIP = "Use Flipped Background Image"
702
  LEFT = "Left Light"
703
  RIGHT = "Right Light"
704
  TOP = "Top Light"
@@ -991,7 +991,7 @@ with block:
991
  example_quick_prompts = gr.Dataset(samples=quick_prompts, label='Lighting Quick List', samples_per_page=1000, components=[prompt])
992
  relight_button = gr.Button(value="Relight")
993
 
994
- with gr.Group():
995
  with gr.Row():
996
  num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
997
  seed = gr.Number(label="Seed", value=12345, precision=0)
@@ -1002,12 +1002,12 @@ with block:
1002
 
1003
  with gr.Accordion("Advanced options", open=False):
1004
  steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=15, step=1)
1005
- cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=2, step=0.01)
1006
  lowres_denoise = gr.Slider(label="Lowres Denoise (for initial latent)", minimum=0.1, maximum=1.0, value=0.9, step=0.01)
1007
  highres_scale = gr.Slider(label="Highres Scale", minimum=1.0, maximum=3.0, value=1.5, step=0.01)
1008
  highres_denoise = gr.Slider(label="Highres Denoise", minimum=0.1, maximum=1.0, value=0.5, step=0.01)
1009
- a_prompt = gr.Textbox(label="Added Prompt", value='best quality')
1010
- n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality')
1011
  with gr.Column():
1012
  result_gallery = gr.Gallery(height=832, object_fit='contain', label='Outputs')
1013
  with gr.Row():
@@ -1106,7 +1106,7 @@ with block:
1106
  prompt = gr.Textbox(label="Prompt")
1107
  bg_source = gr.Radio(
1108
  choices=[e.value for e in BGSource],
1109
- value=BGSource.UPLOAD.value,
1110
  label="Background Source",
1111
  type='value'
1112
  )
 
697
 
698
 
699
  class BGSource(Enum):
700
+ # UPLOAD = "Use Background Image"
701
+ # UPLOAD_FLIP = "Use Flipped Background Image"
702
  LEFT = "Left Light"
703
  RIGHT = "Right Light"
704
  TOP = "Top Light"
 
991
  example_quick_prompts = gr.Dataset(samples=quick_prompts, label='Lighting Quick List', samples_per_page=1000, components=[prompt])
992
  relight_button = gr.Button(value="Relight")
993
 
994
+ with gr.Group(visible=False):
995
  with gr.Row():
996
  num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
997
  seed = gr.Number(label="Seed", value=12345, precision=0)
 
1002
 
1003
  with gr.Accordion("Advanced options", open=False):
1004
  steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=15, step=1)
1005
+ cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=2, step=0.01, visible=False)
1006
  lowres_denoise = gr.Slider(label="Lowres Denoise (for initial latent)", minimum=0.1, maximum=1.0, value=0.9, step=0.01)
1007
  highres_scale = gr.Slider(label="Highres Scale", minimum=1.0, maximum=3.0, value=1.5, step=0.01)
1008
  highres_denoise = gr.Slider(label="Highres Denoise", minimum=0.1, maximum=1.0, value=0.5, step=0.01)
1009
+ a_prompt = gr.Textbox(label="Added Prompt", value='best quality', visible=False)
1010
+ n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality', visible=False)
1011
  with gr.Column():
1012
  result_gallery = gr.Gallery(height=832, object_fit='contain', label='Outputs')
1013
  with gr.Row():
 
1106
  prompt = gr.Textbox(label="Prompt")
1107
  bg_source = gr.Radio(
1108
  choices=[e.value for e in BGSource],
1109
+ #value=BGSource.UPLOAD.value,
1110
  label="Background Source",
1111
  type='value'
1112
  )