xy4286 commited on
Commit
35a0487
1 Parent(s): d735449

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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