momo commited on
Commit
4183b10
ยท
1 Parent(s): 092c5c6
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -45,10 +45,11 @@ def predict(model_name, text):
45
  function_to_apply='sigmoid'
46
  )
47
 
 
48
  for result in pipe(text):
49
- print(str(result) + '\n')
50
 
51
- return str(result) + '\n'
52
 
53
  if __name__ == '__main__':
54
  exam1 = '๊ฒฝ๊ธฐ๋„ ์„ฑ๋‚จ์‹œ ์ˆ˜์ •๊ตฌ ํƒœํ‰3๋™์€ ์šฐ๋ฆฌ ๋™๋„ค์•ผ!'
 
45
  function_to_apply='sigmoid'
46
  )
47
 
48
+ output = []
49
  for result in pipe(text):
50
+ output.append(str(result) + '\n')
51
 
52
+ return output
53
 
54
  if __name__ == '__main__':
55
  exam1 = '๊ฒฝ๊ธฐ๋„ ์„ฑ๋‚จ์‹œ ์ˆ˜์ •๊ตฌ ํƒœํ‰3๋™์€ ์šฐ๋ฆฌ ๋™๋„ค์•ผ!'