Spaces:
Runtime error
Runtime error
simonosgoode
commited on
Commit
•
22838db
1
Parent(s):
13fdef6
Add application file
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def generate(text):
|
4 |
+
return "Hello " + name + "!"
|
5 |
+
|
6 |
+
with gr.Blocks() as demo:
|
7 |
+
name = gr.Textbox(lines=10, label="Input paragraph")
|
8 |
+
output = gr.Textbox(lines=10, label="Output paragraph")
|
9 |
+
greet_btn = gr.Button("Generate the next paragraph of a judgement")
|
10 |
+
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
11 |
+
|
12 |
+
|
13 |
+
demo.launch()
|