Spaces:
Sleeping
Sleeping
add app
Browse files
app.py
CHANGED
@@ -46,9 +46,9 @@ def predict(model_name, text):
|
|
46 |
)
|
47 |
|
48 |
for result in pipe(text):
|
49 |
-
print(result)
|
50 |
|
51 |
-
return result
|
52 |
|
53 |
if __name__ == '__main__':
|
54 |
exam1 = 'κ²½κΈ°λ μ±λ¨μ μμ ꡬ νν3λμ μ°λ¦¬ λλ€μΌ!'
|
@@ -71,6 +71,8 @@ if __name__ == '__main__':
|
|
71 |
[MODEL_BUF["name"], exam3]
|
72 |
],
|
73 |
title="νκ΅μ΄ νμ€νν, κ°μΈμ 보 νλ³κΈ° (Korean Hate Speech and Privacy Detection)",
|
74 |
-
description="Korean Hate Speech and Privacy Detection. \
|
|
|
|
|
75 |
)
|
76 |
app.launch()
|
|
|
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λμ μ°λ¦¬ λλ€μΌ!'
|
|
|
71 |
[MODEL_BUF["name"], exam3]
|
72 |
],
|
73 |
title="νκ΅μ΄ νμ€νν, κ°μΈμ 보 νλ³κΈ° (Korean Hate Speech and Privacy Detection)",
|
74 |
+
description="Korean Hate Speech and Privacy Detection. \n \
|
75 |
+
15κ° label Detection: μ¬μ±/κ°μ‘±, λ¨μ±, μ±μμμ, μΈμ’
/κ΅μ , μ°λ Ή, μ§μ, μ’
κ΅, κΈ°ν νμ€, μ
ν/μμ€, clean, name, number, address, bank, person \n \
|
76 |
+
Current Supported Model:\n1. momo/KcELECTRA-base_Hate_speech_Privacy_Detection\n2. momo/KcBERT-base_Hate_speech_Privacy_Detection."
|
77 |
)
|
78 |
app.launch()
|