Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,20 +2,20 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
classifier = pipeline("sentiment-analysis", model="maurosm/bert_classification_model")
|
5 |
-
|
6 |
-
change_shipping_address
|
7 |
-
complaint
|
8 |
-
contact_customer_service
|
9 |
-
create_account
|
10 |
-
delete_account
|
11 |
-
edit_account
|
12 |
-
get_invoice
|
13 |
-
get_refund
|
14 |
-
payment_issue
|
15 |
-
registration_problems
|
16 |
-
For example you could start with the utterance:
|
17 |
-
The expected intent would be create_account.
|
18 |
-
')
|
19 |
|
20 |
if text:
|
21 |
out = classifier(text)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
classifier = pipeline("sentiment-analysis", model="maurosm/bert_classification_model")
|
5 |
+
st.write("Type an utterance that would correspond to one of the ten intents listed below:"
|
6 |
+
"change_shipping_address"
|
7 |
+
"complaint"
|
8 |
+
"contact_customer_service"
|
9 |
+
"create_account"
|
10 |
+
"delete_account"
|
11 |
+
"edit_account"
|
12 |
+
"get_invoice"
|
13 |
+
"get_refund"
|
14 |
+
"payment_issue"
|
15 |
+
"registration_problems"
|
16 |
+
"For example you could start with the utterance: I would like to create a new account"
|
17 |
+
"The expected intent would be create_account.")
|
18 |
+
text = st.text_area('Type your own utterance below')
|
19 |
|
20 |
if text:
|
21 |
out = classifier(text)
|