Spaces:
Runtime error
Runtime error
Commit
·
1a9537b
1
Parent(s):
28bcf18
Create new file
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
block = gr.Blocks()
|
4 |
+
|
5 |
+
def run(text):
|
6 |
+
return text
|
7 |
+
|
8 |
+
with block:
|
9 |
+
text = gr.Textbox(label="Enter your prompt", show_label=False, max_lines=1)
|
10 |
+
textout = gr.Textbox(show_label=False, max_lines=1)
|
11 |
+
btn = gr.Button("Run")
|
12 |
+
text.submit(run, inputs=text, outputs=textout)
|
13 |
+
btn.click(run, inputs=text, outputs=textout)
|
14 |
+
|
15 |
+
block.queue(concurrency_count=2).launch(enable_queue=True)
|