Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load model from Hugging Face
|
| 5 |
-
def load_model():
|
| 6 |
-
|
| 7 |
|
| 8 |
-
model = load_model()
|
| 9 |
|
| 10 |
st.title("Twitter Sentiment Analysis")
|
| 11 |
text = st.text_area("Enter a tweet:")
|
|
|
|
| 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:")
|