Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 301 Bytes
3f3de3d |
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/usr/bin/env python
import gradio as gr
with gr.Blocks() as demo:
text = gr.Text()
out = gr.Text()
btn = gr.Button()
text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
demo.queue().launch()
|