Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
demo = gr.load("yang-grammer-check ", src="models")
|
4 |
# demo = gr.load("xy4286/yang-summarization", src="models")
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
demo.launch()
|
8 |
|
9 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# demo = gr.load("yang-grammer-check ", src="models")
|
4 |
# demo = gr.load("xy4286/yang-summarization", src="models")
|
5 |
|
6 |
|
7 |
+
|
8 |
+
def greet(name):
|
9 |
+
return "Hello " + name + "!"
|
10 |
+
|
11 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
demo.launch()
|
16 |
|
17 |
|