Commit ·
95bae24
1
Parent(s): df1aad4
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,22 +185,22 @@ with gr.Blocks() as myface:
|
|
| 185 |
run = gr.Button("Создать пейзажи", variant="primary")
|
| 186 |
|
| 187 |
with gr.Row():
|
| 188 |
-
|
| 189 |
download1 = gr.outputs.File(label="Download the output image")
|
| 190 |
-
|
| 191 |
download2 = gr.outputs.File(label="Download the output image")
|
| 192 |
-
|
| 193 |
download3 = gr.outputs.File(label="Download the output image")
|
| 194 |
with gr.Row():
|
| 195 |
magic1 = gr.Textbox(label="Magic промт", lines=2)
|
| 196 |
magic2 = gr.Textbox(label="Magic промт", lines=2)
|
| 197 |
magic3 = gr.Textbox(label="Magic промт", lines=2)
|
| 198 |
with gr.Row():
|
| 199 |
-
|
| 200 |
download4 = gr.outputs.File(label="Download the output image")
|
| 201 |
-
|
| 202 |
download5 = gr.outputs.File(label="Download the output image")
|
| 203 |
-
|
| 204 |
download6 = gr.outputs.File(label="Download the output image")
|
| 205 |
with gr.Row():
|
| 206 |
magic4 = gr.Textbox(label="Magic промт", lines=2)
|
|
@@ -216,6 +216,13 @@ with gr.Blocks() as myface:
|
|
| 216 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
| 217 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
| 218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
| 220 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
| 221 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
|
|
|
|
| 185 |
run = gr.Button("Создать пейзажи", variant="primary")
|
| 186 |
|
| 187 |
with gr.Row():
|
| 188 |
+
output1 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 189 |
download1 = gr.outputs.File(label="Download the output image")
|
| 190 |
+
output2 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 191 |
download2 = gr.outputs.File(label="Download the output image")
|
| 192 |
+
output3 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 193 |
download3 = gr.outputs.File(label="Download the output image")
|
| 194 |
with gr.Row():
|
| 195 |
magic1 = gr.Textbox(label="Magic промт", lines=2)
|
| 196 |
magic2 = gr.Textbox(label="Magic промт", lines=2)
|
| 197 |
magic3 = gr.Textbox(label="Magic промт", lines=2)
|
| 198 |
with gr.Row():
|
| 199 |
+
output4 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 200 |
download4 = gr.outputs.File(label="Download the output image")
|
| 201 |
+
output5 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 202 |
download5 = gr.outputs.File(label="Download the output image")
|
| 203 |
+
output6 = gr.outputs.Image(type="numpy", label="Output (The whole image)")
|
| 204 |
download6 = gr.outputs.File(label="Download the output image")
|
| 205 |
with gr.Row():
|
| 206 |
magic4 = gr.Textbox(label="Magic промт", lines=2)
|
|
|
|
| 216 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
| 217 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
| 218 |
|
| 219 |
+
run.click(send_it, inputs=[magic1, model_name1], outputs=[download1])
|
| 220 |
+
run.click(send_it, inputs=[magic2, model_name1], outputs=[download2])
|
| 221 |
+
run.click(send_it, inputs=[magic3, model_name1], outputs=[download3])
|
| 222 |
+
run.click(send_it, inputs=[magic4, model_name1], outputs=[download4])
|
| 223 |
+
run.click(send_it, inputs=[magic5, model_name1], outputs=[download5])
|
| 224 |
+
run.click(send_it, inputs=[magic6, model_name1], outputs=[download6])
|
| 225 |
+
|
| 226 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
| 227 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
| 228 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
|