Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
-
|
| 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:")
|