amildravid4292 commited on
Commit
276ae63
·
verified ·
1 Parent(s): 7d8f334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -408,7 +408,7 @@ intro = """
408
  with gr.Blocks(css="style.css") as demo:
409
  gr.HTML(intro)
410
 
411
- gr.Markdown("""<div style="text-align: justify;"> In this demo, you can get an identity-encoding model by sampling or inverting. To use a model previously downloaded from this demo see \"Uploading a model\" in the Advanced Options. Next, you can generate new samples from it, or edit the identity encoded in the model and generate samples from the edited model. We provide detailed instructions and tips at the bottom of the page.""")
412
  with gr.Column():
413
  with gr.Row():
414
  with gr.Column():
@@ -423,7 +423,7 @@ with gr.Blocks(css="style.css") as demo:
423
 
424
 
425
  with gr.Column():
426
- gr.Markdown("""2) Generate images of the sampled/inverted identity or edit the identity and generate new images. """)
427
  gallery = gr.Image(label="Generated Image",height=512, width=512, interactive=False)
428
  submit = gr.Button("Generate")
429
 
@@ -488,7 +488,7 @@ with gr.Blocks(css="style.css") as demo:
488
  submit.click(
489
  fn=edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
490
  )
491
- file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
492
 
493
 
494
 
 
408
  with gr.Blocks(css="style.css") as demo:
409
  gr.HTML(intro)
410
 
411
+ gr.Markdown("""<div style="text-align: justify;"> In this demo, you can get an identity-encoding model by sampling or inverting. To use a model previously downloaded from this demo see \"Uploading a model\" in the Advanced Options. Next, you can generate new images from it, or edit the identity encoded in the model and generate images from the edited model. We provide detailed instructions and tips at the bottom of the page.""")
412
  with gr.Column():
413
  with gr.Row():
414
  with gr.Column():
 
423
 
424
 
425
  with gr.Column():
426
+ gr.Markdown("""2) Generate images of the sampled/inverted identity or edit the identity and generate new images using different prompts and seeds. """)
427
  gallery = gr.Image(label="Generated Image",height=512, width=512, interactive=False)
428
  submit = gr.Button("Generate")
429
 
 
488
  submit.click(
489
  fn=edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
490
  )
491
+ file_input.change(fn=file_upload, inputs=file_input, outputs = gallery)
492
 
493
 
494