ashok2216 commited on
Commit
1dd38d8
·
verified ·
1 Parent(s): 7194376

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'