Update app.py
Browse files
app.py
CHANGED
@@ -57,17 +57,25 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
57 |
output2 = proc1(prompt_with_noise)
|
58 |
return output2
|
59 |
|
60 |
-
|
61 |
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
62 |
#output3 = proc1(prompt_with_noise)
|
63 |
#return output3
|
64 |
|
65 |
-
|
66 |
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
67 |
#output4 = proc1(prompt_with_noise)
|
68 |
#return output4
|
69 |
|
|
|
|
|
|
|
|
|
70 |
|
|
|
|
|
|
|
|
|
71 |
|
72 |
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
73 |
gr.HTML(
|
@@ -118,7 +126,16 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
|
118 |
with gr.Row():
|
119 |
with gr.Row():
|
120 |
output1=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
|
|
121 |
output2=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
#with gr.Row():
|
124 |
#output1=gr.Image()
|
@@ -126,6 +143,10 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
|
126 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
127 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
128 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
|
|
|
|
|
|
|
|
129 |
|
130 |
|
131 |
|
|
|
57 |
output2 = proc1(prompt_with_noise)
|
58 |
return output2
|
59 |
|
60 |
+
def send_it3(inputs, noise_level, proc1=proc1):
|
61 |
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
62 |
#output3 = proc1(prompt_with_noise)
|
63 |
#return output3
|
64 |
|
65 |
+
def send_it4(inputs, noise_level, proc1=proc1):
|
66 |
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
67 |
#output4 = proc1(prompt_with_noise)
|
68 |
#return output4
|
69 |
|
70 |
+
def send_it5(inputs, noise_level, proc1=proc1):
|
71 |
+
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
72 |
+
#output5 = proc1(prompt_with_noise)
|
73 |
+
#return output5
|
74 |
|
75 |
+
def send_it6(inputs, noise_level, proc1=proc1):
|
76 |
+
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
77 |
+
#output6 = proc1(prompt_with_noise)
|
78 |
+
#return output6
|
79 |
|
80 |
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
81 |
gr.HTML(
|
|
|
126 |
with gr.Row():
|
127 |
with gr.Row():
|
128 |
output1=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
129 |
+
with gr.Row():
|
130 |
output2=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
131 |
+
with gr.Row():
|
132 |
+
output3=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
133 |
+
with gr.Row():
|
134 |
+
output4=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
135 |
+
with gr.Row():
|
136 |
+
output5=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
137 |
+
with gr.Row():
|
138 |
+
output6=gr.Image(label="Dreamlike-photoreal-2.0",show_label=False)
|
139 |
|
140 |
#with gr.Row():
|
141 |
#output1=gr.Image()
|
|
|
143 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
144 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
145 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
146 |
+
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
147 |
+
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
148 |
+
run.click(send_it5, inputs=[prompt, noise_level], outputs=[output5])
|
149 |
+
run.click(send_it6, inputs=[prompt, noise_level], outputs=[output6])
|
150 |
|
151 |
|
152 |
|