quelmap commited on
Commit
f1d5b21
·
1 Parent(s): 8a1e016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ def my_inference_function(name):
20
  )
21
  output = tokenizer.decode(tokens[0], skip_special_tokens=True)
22
  output=output.replace(f"(上司へのメール敬語で){mail}","")
23
- return output.replace("\n", "")
 
24
 
25
  gradio_interface = gradio.Interface(
26
  fn = my_inference_function,
 
20
  )
21
  output = tokenizer.decode(tokens[0], skip_special_tokens=True)
22
  output=output.replace(f"(上司へのメール敬語で){mail}","")
23
+ output=output.replace("\n", "")
24
+ return output
25
 
26
  gradio_interface = gradio.Interface(
27
  fn = my_inference_function,