Download app.py from MishaD/TwitterSentimentClassificationUsingBert91.5: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/MishaD/TwitterSentimentClassificationUsingBert91.5/resolve/main/app.py
- Command line
-
hf download hf://spaces/MishaD/TwitterSentimentClassificationUsingBert91.5/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MishaD/TwitterSentimentClassificationUsingBert91.5/resolve/main/app.py
628 Bytes
| import streamlit as st | |
| from model import classify_text | |
| st.markdown("### Sentiment classification (negative vs. positive)") | |
| title = st.text_area("Your sentiment for classification", "2010 So I spent a few hours making something for fun. . . If you don't know I am a HUGE RhandlerR fan and Maya is one of my favorite characters. So I decided to make myself a wallpaper for my PC. . Here is the original image versus the creation I made :) Enjoy! pic.twitter.com/mLsI5wf9Jg") | |
| if st.button("Classify!"): | |
| prob = float(classify_text(title)) | |
| st.markdown(f"**Model**: {round(prob, 5)} probability of being positive") | |