hantech commited on
Commit
adcdf2c
·
1 Parent(s): 885bc42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ model = SimpleT5()
6
  model.load_model("byt5","hantech/byt5_correct2", use_gpu=False)
7
 
8
  def predict(text):
9
- result = model.predict(text)
10
  return result[0]
11
 
12
  gr.Interface(predict, [gr.Textbox(label="Text")], gr.Textbox()).launch()
 
6
  model.load_model("byt5","hantech/byt5_correct2", use_gpu=False)
7
 
8
  def predict(text):
9
+ result = model.predict('correct: '+text)
10
  return result[0]
11
 
12
  gr.Interface(predict, [gr.Textbox(label="Text")], gr.Textbox()).launch()