Balnur26 commited on
Commit
f931fb4
·
1 Parent(s): debe366

added code

Browse files
Files changed (2) hide show
  1. app.py +0 -2
  2. requirements.txt +3 -0
app.py CHANGED
@@ -1,11 +1,9 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- # Application title
5
  st.title("Text Sentiment Analysis App")
6
  st.write("Analyze whether a given text is positive or negative using a Hugging Face model.")
7
 
8
- # Text input
9
  user_input = st.text_area("Enter your text:", placeholder="For example: I love this product!")
10
 
11
  # Initialize the model
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
 
4
  st.title("Text Sentiment Analysis App")
5
  st.write("Analyze whether a given text is positive or negative using a Hugging Face model.")
6
 
 
7
  user_input = st.text_area("Enter your text:", placeholder="For example: I love this product!")
8
 
9
  # Initialize the model
requirements.txt CHANGED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ transformers
3
+ torch