MaxMilan1 commited on
Commit
c54371d
1 Parent(s): 36d6f81

more chanegs

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -43,7 +43,7 @@ with gr.Blocks(theme=theme) as GenDemo:
43
  button_img = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
44
  gen_image = gr.Image(label="Generated Image", image_mode="RGBA", type='pil', show_download_button=True, show_label=False)
45
 
46
- button_img.click(check_prompt, inputs=[prompt]).success(generate_imgtoimg, inputs=[prompt, image, strength], outputs=[gen_image_var]).success(update_image, inputs=[gen_image_var], outputs=[gen_image])
47
 
48
  with gr.Tab("Text to Image Generator"):
49
  with gr.Row(variant="panel"):
@@ -63,18 +63,18 @@ with gr.Blocks(theme=theme) as GenDemo:
63
  button_txt = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
64
  gen_image = gr.Image(label="Generated Image", image_mode="RGBA", type='pil', show_download_button=True, show_label=False)
65
 
66
- button_txt.click(check_prompt, inputs=[prompt]).success(generate_txttoimg, inputs=[prompt, controlNet_image, select], outputs=[gen_image_var]).success(update_image, inputs=[gen_image_var], outputs=[gen_image])
67
 
68
  with gr.Tab("Image to 3D Model Generator"):
69
  with gr.Row(variant="panel"):
70
  with gr.Column():
71
  with gr.Row():
72
- input_image = gr.Image(
73
- label="Input Image",
74
- image_mode="RGBA",
75
- type="pil",
76
- interactive=True
77
- )
78
  processed_image = gr.Image(
79
  label="Processed Image",
80
  image_mode="RGBA",
 
43
  button_img = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
44
  gen_image = gr.Image(label="Generated Image", image_mode="RGBA", type='pil', show_download_button=True, show_label=False)
45
 
46
+ button_img.click(check_prompt, inputs=[prompt]).success(generate_imgtoimg, inputs=[prompt, image, strength], outputs=[gen_image]).success(update_image, inputs=[gen_image], outputs=[gen_image_var])
47
 
48
  with gr.Tab("Text to Image Generator"):
49
  with gr.Row(variant="panel"):
 
63
  button_txt = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
64
  gen_image = gr.Image(label="Generated Image", image_mode="RGBA", type='pil', show_download_button=True, show_label=False)
65
 
66
+ button_txt.click(check_prompt, inputs=[prompt]).success(generate_txttoimg, inputs=[prompt, controlNet_image, select], outputs=[gen_image]).success(update_image, inputs=[gen_image], outputs=[gen_image_var])
67
 
68
  with gr.Tab("Image to 3D Model Generator"):
69
  with gr.Row(variant="panel"):
70
  with gr.Column():
71
  with gr.Row():
72
+ # input_image = gr.Image(
73
+ # label="Input Image",
74
+ # image_mode="RGBA",
75
+ # type="pil",
76
+ # interactive=True
77
+ # )
78
  processed_image = gr.Image(
79
  label="Processed Image",
80
  image_mode="RGBA",