Spaces:
Sleeping
Sleeping
File size: 665 Bytes
ceb9d4b 375b697 bc23180 ed98b66 bc23180 e3f6dfd ceb9d4b 375b697 ceb9d4b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="maurosm/bert_classification_model")
st.markdown('''
Type an utterance that corresponds to one of the ten intents listed below:
* change_shipping_address
* complaint
* contact_customer_service
* create_account
* delete_account
* edit_account
* get_invoice
* get_refund
* payment_issue
* registration_problems
For example you could start with the utterance: "I would like to create a new account"
The expected intent would be *create_account*.''')
text = st.text_area('Type your own utterance below')
if text:
out = classifier(text)
st.json(out)
|