Spaces:
Running
Running
Update app.py
Browse files45 unmodified lines4647484950515253545535 unmodified lines919293949545 unmodified linesdef make_me():# with gr.Tab('The Dream'):with gr.Row():txt_input = gr.Textbox(lines=2, value=kii, width=300, max_height=100)#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)gen_button = gr.Button('Generate images', width=150, height=30)stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)gr.HTML("""35 unmodified linesdemo.queue(concurrency_count=20)demo.launch()45 unmodified lines4647484950515253545535 unmodified lines919293949545 unmodified linesdef make_me():# with gr.Tab('The Dream'):with gr.Row():txt_input = gr.Textbox(lines=3, value=kii, width=300, max_height=100)#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)gen_button = gr.Button('Generate images (5 concurrent, to try and avoid "CUDA out of memory" errors)', width=150, height=30)stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)gr.HTML("""35 unmodified linesdemo.queue(concurrency_count=5)demo.launch()
app.py+3-3