Jayabaskar commited on
Commit
7edbc24
·
verified ·
1 Parent(s): bf50b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- # Load model from Hugging Face
5
- # def load_model():
6
- # return pipeline("text-classification", model="Jayabaskar/Fintuned") # Use your uploaded model
7
 
8
- # model = load_model()
9
 
10
  st.title("Twitter Sentiment Analysis")
11
  text = st.text_area("Enter a tweet:")
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ Load model from Hugging Face
5
+ def load_model():
6
+ return pipeline("text-classification", model="Jayabaskar/Fintuned") # Use your uploaded model
7
 
8
+ model = load_model()
9
 
10
  st.title("Twitter Sentiment Analysis")
11
  text = st.text_area("Enter a tweet:")