Spaces:
Sleeping
Sleeping
add app
Browse files
app.py
CHANGED
@@ -44,12 +44,11 @@ def predict(model_name, text):
|
|
44 |
return_all_scores=True,
|
45 |
function_to_apply='sigmoid'
|
46 |
)
|
47 |
-
|
48 |
-
|
49 |
for result in pipe(text)[0]:
|
50 |
-
|
51 |
|
52 |
-
return
|
53 |
|
54 |
if __name__ == '__main__':
|
55 |
exam1 = '๊ฒฝ๊ธฐ๋ ์ฑ๋จ์ ์์ ๊ตฌ ํํ3๋์ ์ฐ๋ฆฌ ๋๋ค์ผ!'
|
|
|
44 |
return_all_scores=True,
|
45 |
function_to_apply='sigmoid'
|
46 |
)
|
47 |
+
output = []
|
|
|
48 |
for result in pipe(text)[0]:
|
49 |
+
output.append(result + '\t')
|
50 |
|
51 |
+
return output
|
52 |
|
53 |
if __name__ == '__main__':
|
54 |
exam1 = '๊ฒฝ๊ธฐ๋ ์ฑ๋จ์ ์์ ๊ตฌ ํํ3๋์ ์ฐ๋ฆฌ ๋๋ค์ผ!'
|