amildravid4292 commited on
Commit
83c3645
·
verified ·
1 Parent(s): cf6ad0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -434,7 +434,7 @@ intro = """
434
 
435
 
436
  with gr.Blocks(css="style.css") as demo:
437
- model = main()
438
  gr.HTML(intro)
439
 
440
  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.""")
@@ -506,17 +506,17 @@ with gr.Blocks(css="style.css") as demo:
506
 
507
 
508
 
509
- invert_button.click(fn=model.run_inversion,
510
- inputs=[input_image, pcs, epochs, weight_decay,lr],
511
- outputs = [input_image, file_output])
512
 
513
 
514
- sample.click(fn=model.sample_then_run, outputs=[input_image, file_output])
515
 
516
- submit.click(
517
- fn=model.edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
518
- )
519
- file_input.change(fn=model.file_upload, inputs=file_input, outputs = gallery)
520
 
521
 
522
 
 
434
 
435
 
436
  with gr.Blocks(css="style.css") as demo:
437
+
438
  gr.HTML(intro)
439
 
440
  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.""")
 
506
 
507
 
508
 
509
+ # invert_button.click(fn=model.run_inversion,
510
+ # inputs=[input_image, pcs, epochs, weight_decay,lr],
511
+ # outputs = [input_image, file_output])
512
 
513
 
514
+ # sample.click(fn=model.sample_then_run, outputs=[input_image, file_output])
515
 
516
+ # submit.click(
517
+ # fn=model.edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
518
+ # )
519
+ # file_input.change(fn=model.file_upload, inputs=file_input, outputs = gallery)
520
 
521
 
522