omerXfaruq's picture
disable queuing
40b3b6b
raw
history blame
No virus
214 Bytes
import gradio as gr
import asyncio
async def test(x):
await asyncio.sleep(5)
return x
with gr.Blocks() as demo:
i = gr.Textbox()
o = gr.Textbox()
i.change(test, i, o)
demo.launch(enable_queue=False)