amildravid4292 commited on
Commit
ece4213
·
verified ·
1 Parent(s): ccb4901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -502,12 +502,12 @@ with gr.Blocks(css="style.css") as demo:
502
  # steps2 = gr.Slider(label="Inference Steps", value=50, step=1, minimum=0, maximum=100, interactive=True)
503
  # injection_step = gr.Slider(label="Injection Step", value=800, step=1, minimum=0, maximum=1000, interactive=True)
504
  # negative_prompt2 = gr.Textbox(label="Negative Prompt", placeholder="low quality, blurry, unfinished, nudity, weapon", value="low quality, blurry, unfinished, nudity, weapon")
505
- with gr.Tab("Uploading a model"):
506
- gr.Markdown("""<div style="text-align: justify;">Upload a model below downloaded from this demo.""")
507
 
508
- file_input = gr.File(label="Upload Model", container=True)
509
 
510
- submit1 = gr.Button("Generate")
511
 
512
 
513
 
@@ -533,10 +533,10 @@ with gr.Blocks(css="style.css") as demo:
533
  # submit1.click(fn=edit_inference,
534
  # inputs=[input_image, prompt1, negative_prompt1, cfg1, steps1, seed1, injection_step, a1, a2, a3, a4],
535
  # outputs=image_slider)
536
- submit1.click(
537
- fn=edit_inference, inputs=[input_image, prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[image_slider]
538
- )
539
- file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
540
 
541
 
542
 
 
502
  # steps2 = gr.Slider(label="Inference Steps", value=50, step=1, minimum=0, maximum=100, interactive=True)
503
  # injection_step = gr.Slider(label="Injection Step", value=800, step=1, minimum=0, maximum=1000, interactive=True)
504
  # negative_prompt2 = gr.Textbox(label="Negative Prompt", placeholder="low quality, blurry, unfinished, nudity, weapon", value="low quality, blurry, unfinished, nudity, weapon")
505
+ # with gr.Tab("Uploading a model"):
506
+ # gr.Markdown("""<div style="text-align: justify;">Upload a model below downloaded from this demo.""")
507
 
508
+ # file_input = gr.File(label="Upload Model", container=True)
509
 
510
+ # submit1 = gr.Button("Generate")
511
 
512
 
513
 
 
533
  # submit1.click(fn=edit_inference,
534
  # inputs=[input_image, prompt1, negative_prompt1, cfg1, steps1, seed1, injection_step, a1, a2, a3, a4],
535
  # outputs=image_slider)
536
+ # submit1.click(
537
+ # fn=edit_inference, inputs=[input_image, prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[image_slider]
538
+ # )
539
+ # file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
540
 
541
 
542