Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ucberkeley-dlab
/
measuring-hate-speech
like
0
Runtime error
App
Files
Files
Community
ck37
commited on
Feb 28, 2022
Commit
1b05be3
•
1 Parent(s):
736ce46
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import streamlist as st
2
+
3
+
# TODO: load model from our HuggingFace model hub:
4
+
"ucberkeley-dlab/hate-measure-roberta-large"
5
+
6
+
text = st.text_area("Enter text here")
7
+
8
+
if text:
9
+
print("Predict")