Richard Neuschulz commited on
Commit
beab703
1 Parent(s): f233c1b

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -90,7 +90,7 @@ with gr.Blocks(css=css) as demo:
90
  label="Drag 1 or more photos of your face",
91
  file_types=["image"]
92
  )
93
- uploaded_files = gr.Gallery(label="Your images", visible=False, columns=5, rows=1, height=125)
94
  with gr.Column(visible=False) as clear_button:
95
  remove_and_reupload = gr.ClearButton(value="Remove and upload new ones", components=files, size="sm")
96
  prompt = gr.Textbox(label="Prompt",
@@ -99,10 +99,9 @@ with gr.Blocks(css=css) as demo:
99
  value="A photo of a man, looking directly at camera, professional photoshoot, plain black shirt, on plain black background, shaved head, trimmed beard, stoic, dynamic lighting")
100
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="low quality", value="low quality, worst quality")
101
  style = "Photorealistic"
102
- submit = gr.Button("Submit")
103
- with gr.Column(visible=True):
104
- face_strength = gr.Slider(label="Guidance Scale", info="Dunno what this actually is", value=7.5, step=0.1, minimum=1, maximum=10)
105
- likeness_strength = gr.Slider(label="Scale", info="Dunno what this actually is, either", value=1.0, step=0.1, minimum=0, maximum=5)
106
  with gr.Column():
107
  gallery = gr.Gallery(label="Generated Images")
108
  files.upload(fn=swap_to_gallery, inputs=files, outputs=[uploaded_files, clear_button, files])
 
90
  label="Drag 1 or more photos of your face",
91
  file_types=["image"]
92
  )
93
+ uploaded_files = gr.Gallery(label="Your images", visible=False, columns=5, rows=1, height=250)
94
  with gr.Column(visible=False) as clear_button:
95
  remove_and_reupload = gr.ClearButton(value="Remove and upload new ones", components=files, size="sm")
96
  prompt = gr.Textbox(label="Prompt",
 
99
  value="A photo of a man, looking directly at camera, professional photoshoot, plain black shirt, on plain black background, shaved head, trimmed beard, stoic, dynamic lighting")
100
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="low quality", value="low quality, worst quality")
101
  style = "Photorealistic"
102
+ face_strength = gr.Slider(label="Guidance Scale", info="Dunno what this actually is", value=7.5, step=0.1, minimum=1, maximum=10)
103
+ likeness_strength = gr.Slider(label="Scale", info="Dunno what this actually is, either", value=1.0, step=0.1, minimum=0, maximum=5)
104
+ submit = gr.Button("Submit", variant="primary")
 
105
  with gr.Column():
106
  gallery = gr.Gallery(label="Generated Images")
107
  files.upload(fn=swap_to_gallery, inputs=files, outputs=[uploaded_files, clear_button, files])