makanaan commited on
Commit
96800a1
·
1 Parent(s): 3171eac

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,9 +2,9 @@ from transformers import pipeline
2
  import gradio as gr
3
 
4
  def parph(name= "paraphrase: This is something which I cannt understand at all."):
5
- text2text = pipeline("text2text-generation")
6
  ##model_name = 'tuner007/pegasus_paraphrase'
7
- #text2text = pipeline('text2text-generation', model = "Vamsi/T5_Paraphrase_Paws")
8
  ##text2text(name)
9
  return name # text2text(name)
10
 
 
2
  import gradio as gr
3
 
4
  def parph(name= "paraphrase: This is something which I cannt understand at all."):
5
+ #text2text = pipeline("text2text-generation")
6
  ##model_name = 'tuner007/pegasus_paraphrase'
7
+ text2text = pipeline('text2text-generation', model = "Vamsi/T5_Paraphrase_Paws")
8
  ##text2text(name)
9
  return name # text2text(name)
10