MaxMilan1
commited on
Commit
·
044a737
1
Parent(s):
657d017
new changes
Browse files
app.py
CHANGED
@@ -36,22 +36,12 @@ with gr.Blocks() as demo:
|
|
36 |
with gr.Column():
|
37 |
gen_image = gr.Image(label="Generated Image", show_download_button=True, show_label=False)
|
38 |
|
39 |
-
gen_image = gr.State()
|
40 |
-
|
41 |
button_gen.click(check_prompt, inputs=[prompt]).success(generate_image, inputs=[prompt, negative_prompt, control_image, scale], outputs=[gen_image])
|
42 |
|
43 |
with gr.Tab("Image to 3D Model Generator"):
|
44 |
with gr.Row(variant="panel"):
|
45 |
with gr.Column():
|
46 |
with gr.Row():
|
47 |
-
gen_image = gr.Image(
|
48 |
-
label="Generated Image",
|
49 |
-
image_mode="RGBA",
|
50 |
-
#width=256,
|
51 |
-
#height=256,
|
52 |
-
type="pil",
|
53 |
-
elem_id="content_image",
|
54 |
-
)
|
55 |
processed_image = gr.Image(
|
56 |
label="Processed Image",
|
57 |
image_mode="RGBA",
|
|
|
36 |
with gr.Column():
|
37 |
gen_image = gr.Image(label="Generated Image", show_download_button=True, show_label=False)
|
38 |
|
|
|
|
|
39 |
button_gen.click(check_prompt, inputs=[prompt]).success(generate_image, inputs=[prompt, negative_prompt, control_image, scale], outputs=[gen_image])
|
40 |
|
41 |
with gr.Tab("Image to 3D Model Generator"):
|
42 |
with gr.Row(variant="panel"):
|
43 |
with gr.Column():
|
44 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
processed_image = gr.Image(
|
46 |
label="Processed Image",
|
47 |
image_mode="RGBA",
|