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