Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ st.markdown("")
|
|
39 |
st.markdown("")
|
40 |
st.subheader('Amazon Sentiment Analysis using FineTuned :red[GPT-2] Pre-Trained Model')
|
41 |
|
42 |
-
@st.cache_resource
|
43 |
def load_model():
|
44 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
45 |
sample_url = 'https://www.amazon.in/Dell-Inspiron-i7-1255U-Processor-Platinum/product-reviews/B0C9F142V6/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews'
|
|
|
39 |
st.markdown("")
|
40 |
st.subheader('Amazon Sentiment Analysis using FineTuned :red[GPT-2] Pre-Trained Model')
|
41 |
|
42 |
+
@st.cache_resource(experimental_allow_widgets=True)
|
43 |
def load_model():
|
44 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
45 |
sample_url = 'https://www.amazon.in/Dell-Inspiron-i7-1255U-Processor-Platinum/product-reviews/B0C9F142V6/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews'
|