Update app.py
Browse files3 unmodified lines4567891035 unmodified lines4647484950515253545535 unmodified lines91929394953 unmodified linesfrom datetime import datetimenow2 = 0kii="mohawk femboy racecar driver";def get_current_time():35 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()3 unmodified lines45678935 unmodified lines4546474849505152535435 unmodified lines90919293943 unmodified linesfrom datetime import datetimenow2 = 0def get_current_time():35 unmodified linesdef make_me():# with gr.Tab('The Dream'):with gr.Row():#txt_input = gr.Textbox(lines=3, width=300, max_height=100)txt_input = gr.Textbox(label='Your prompt:', lines=3, width=300, max_height=100)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=999)demo.launch()
app.py+4-5