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