JACOBBBB commited on
Commit
02a6b64
1 Parent(s): 0cd0ca5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ from transformers import pipeline
3
  from datetime import datetime
4
 
5
  # Set up Streamlit title and description
6
- st.title("Sentiment Analysis, Audio Feedback, and Response Generation")
7
- st.write("Enter a review, guess its sentiment (positive/negative), and get audio feedback on your guess along with a professional response.")
8
 
9
  # Load the sentiment analysis model
10
  sentiment_analysis = pipeline("text-classification", model="JACOBBBB/CustomModel_JL")
@@ -22,7 +22,7 @@ review = st.text_area("Enter the review to analyze", "")
22
  user_guess = st.selectbox("Guess the sentiment of your review:", ("Positive", "Negative"))
23
 
24
  # Perform operations when the user clicks the "Analyze and Respond" button
25
- if st.button("Analyze and Respond"):
26
  # Perform sentiment analysis on the input review
27
  sentiment_result = sentiment_analysis(review)[0]
28
  label = sentiment_result['label'].upper()
 
3
  from datetime import datetime
4
 
5
  # Set up Streamlit title and description
6
+ st.title("Sentiment Analysis , Audio Feedback, and Response Generation")
7
+ st.write("Enter a review, guess its sentiment (positive/negative), and get audio feedback on your guess and improve your Enlish.")
8
 
9
  # Load the sentiment analysis model
10
  sentiment_analysis = pipeline("text-classification", model="JACOBBBB/CustomModel_JL")
 
22
  user_guess = st.selectbox("Guess the sentiment of your review:", ("Positive", "Negative"))
23
 
24
  # Perform operations when the user clicks the "Analyze and Respond" button
25
+ if st.button("Analyze and Generate"):
26
  # Perform sentiment analysis on the input review
27
  sentiment_result = sentiment_analysis(review)[0]
28
  label = sentiment_result['label'].upper()