maurosm commited on
Commit
e3f6dfd
·
1 Parent(s): eaf8b91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
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
- text = st.text_area('Type an utterance that would correspond to one of the ten intents listed below:\n
6
- change_shipping_address\n
7
- complaint\n
8
- contact_customer_service\n
9
- create_account\n
10
- delete_account\n
11
- edit_account\n
12
- get_invoice\n
13
- get_refund\n
14
- payment_issue\n
15
- registration_problems\n
16
- For example you could start with the utterance: "I would like to create a new account"\n
17
- The expected intent would be create_account. Type your own utterances and see what you get.
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)