Spaces:
Sleeping
Sleeping
Commit
•
f87dde4
1
Parent(s):
b3948e3
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,9 @@ classifier = pipeline(task="text-classification", model="SamLowe/roberta-base-go
|
|
6 |
|
7 |
sentences = st.text_input('Enter Your Sentences')
|
8 |
|
9 |
-
|
10 |
|
11 |
-
if
|
|
|
12 |
st.write(model_outputs[0])
|
13 |
# produces a list of dicts for each of the labels
|
|
|
6 |
|
7 |
sentences = st.text_input('Enter Your Sentences')
|
8 |
|
9 |
+
button = st.button('Submit')
|
10 |
|
11 |
+
if button :
|
12 |
+
model_outputs = classifier(sentences)
|
13 |
st.write(model_outputs[0])
|
14 |
# produces a list of dicts for each of the labels
|