run480 commited on
Commit
e4a6e36
·
verified ·
1 Parent(s): baa5906

Update app.py

Browse files

SyntaxError: invalid non-printable character U+00A0

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,9 +89,9 @@ def summarize(text):
89
  tokens = pegasus_tkn(text, truncation=True, padding="longest", return_tensors="pt")
90
  txt_summary = mdl.generate(**tokens)
91
  response = pegasus_tkn.batch_decode(txt_summary, skip_special_tokens=True)
92
-     return response
93
 
94
  txt = grad.Textbox(lines=10, label="English", placeholder="English Text here")
95
  out = grad.Textbox(lines=10, label="Summary")
96
 
97
- grad.Interface(summarize, inputs=txt, outputs=out).launch()
 
89
  tokens = pegasus_tkn(text, truncation=True, padding="longest", return_tensors="pt")
90
  txt_summary = mdl.generate(**tokens)
91
  response = pegasus_tkn.batch_decode(txt_summary, skip_special_tokens=True)
92
+ return response
93
 
94
  txt = grad.Textbox(lines=10, label="English", placeholder="English Text here")
95
  out = grad.Textbox(lines=10, label="Summary")
96
 
97
+ grad.Interface(summarize, inputs=txt, outputs=out).launch()