Spaces:
Sleeping
Sleeping
add app
Browse files
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 |
-
|
50 |
|
51 |
-
return
|
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๋์ ์ฐ๋ฆฌ ๋๋ค์ผ!'
|