test / app.py
multimodalart's picture
Create new file
1a9537b
raw
history blame
397 Bytes
import gradio as gr
block = gr.Blocks()
def run(text):
return text
with block:
text = gr.Textbox(label="Enter your prompt", show_label=False, max_lines=1)
textout = gr.Textbox(show_label=False, max_lines=1)
btn = gr.Button("Run")
text.submit(run, inputs=text, outputs=textout)
btn.click(run, inputs=text, outputs=textout)
block.queue(concurrency_count=2).launch(enable_queue=True)