Ceshine Lee commited on
Commit
46ff5db
·
1 Parent(s): f70ff9e

Try loading the paraphrasing model

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ interface = gr.Interface.load(
4
+ "huggingface/ceshine/t5-paraphrase-quora-paws",
5
+ description="Paraphrasing model trained on PAWS and Quora datasets",
6
+ examples=[
7
+ ["I bought a ticket from London to New York."],
8
+ ["Weh Seun spends 14 hours a week doing housework."]
9
+ ]
10
+ )
11
+ interface.launch()