Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -262,11 +262,11 @@ with gr.Blocks(css="cake.css") as myface:
|
|
| 262 |
with gr.Box(visible=True) as timo:
|
| 263 |
with gr.Row():
|
| 264 |
with gr.Column():
|
| 265 |
-
|
| 266 |
prompt=gr.Textbox(label="Text to Image",visible=True)
|
| 267 |
with gr.Column():
|
| 268 |
-
|
| 269 |
-
|
| 270 |
with gr.Row():
|
| 271 |
with gr.Column():
|
| 272 |
run=gr.Button("Launch")
|
|
@@ -325,11 +325,11 @@ with gr.Blocks(css="cake.css") as myface:
|
|
| 325 |
run19=run.click(send_it19, inputs=[prompt], outputs=[output19])
|
| 326 |
run20=run.click(send_it20, inputs=[prompt], outputs=[output20])
|
| 327 |
|
| 328 |
-
|
| 329 |
clear_btn.click(clear_fn, None,
|
| 330 |
[input_text,prompt,output1,output2,output3,output4,output5,output6,output7,output8,output9,output10,output11,output12,output13,output14,output15,output16,output17,output18,output19,output20],
|
| 331 |
cancels=[prompt1,run1,run2,run3,run4,run5,run6,run7,run8,run9,run10,run11,run12,run13,run14,run15,run16,run17,run18,run19,run20])
|
| 332 |
tog_box.change(clear_it,tog_box,tog_box,cancels=[run1,run2,run3,run4,run5,run6,run7,run8,run9,run10,run11,run12,run13,run14,run15,run16,run17,run18,run19,run20,prompt1])
|
| 333 |
|
| 334 |
myface.queue(concurrency_count=60,status_update_rate=1)
|
| 335 |
-
myface.launch(
|
|
|
|
| 262 |
with gr.Box(visible=True) as timo:
|
| 263 |
with gr.Row():
|
| 264 |
with gr.Column():
|
| 265 |
+
input_text=gr.Textbox(label="Short Prompt")
|
| 266 |
prompt=gr.Textbox(label="Text to Image",visible=True)
|
| 267 |
with gr.Column():
|
| 268 |
+
with gr.Row():
|
| 269 |
+
see_prompts=gr.Button("Magic Prompt")
|
| 270 |
with gr.Row():
|
| 271 |
with gr.Column():
|
| 272 |
run=gr.Button("Launch")
|
|
|
|
| 325 |
run19=run.click(send_it19, inputs=[prompt], outputs=[output19])
|
| 326 |
run20=run.click(send_it20, inputs=[prompt], outputs=[output20])
|
| 327 |
|
| 328 |
+
prompt1=see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt],cancels=[run1,run2,run3,run4,run5,run6,run7,run8,run9,run10,run11,run12,run13,run14,run15,run16,run17,run18,run19,run20])
|
| 329 |
clear_btn.click(clear_fn, None,
|
| 330 |
[input_text,prompt,output1,output2,output3,output4,output5,output6,output7,output8,output9,output10,output11,output12,output13,output14,output15,output16,output17,output18,output19,output20],
|
| 331 |
cancels=[prompt1,run1,run2,run3,run4,run5,run6,run7,run8,run9,run10,run11,run12,run13,run14,run15,run16,run17,run18,run19,run20])
|
| 332 |
tog_box.change(clear_it,tog_box,tog_box,cancels=[run1,run2,run3,run4,run5,run6,run7,run8,run9,run10,run11,run12,run13,run14,run15,run16,run17,run18,run19,run20,prompt1])
|
| 333 |
|
| 334 |
myface.queue(concurrency_count=60,status_update_rate=1)
|
| 335 |
+
myface.launch(inline=True,max_threads=60)
|