tayfen commited on
Commit
543bcc6
·
verified ·
1 Parent(s): d5a91cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -3,14 +3,15 @@ from transformers import pipeline
3
 
4
  sentiment_pipeline = pipeline("sentiment-analysis")
5
 
6
- st.title("Sentiment Analysis")
7
  st.write("Введите предложение: ")
8
 
9
  user_input = st.text_input("")
10
  if user_input:
11
- result = sentiment_pipeline(user_input)
12
- sentiment = result[0]["label"]
13
- confidence = result[0]["score"]
 
14
 
15
- st.write(f"Sentiment: {sentiment}")
16
- st.write(f"Confidence: {confidence:.2f}")
 
3
 
4
  sentiment_pipeline = pipeline("sentiment-analysis")
5
 
6
+ st.title("Calc 2+2")
7
  st.write("Введите предложение: ")
8
 
9
  user_input = st.text_input("")
10
  if user_input:
11
+ #result = sentiment_pipeline(user_input)
12
+ #sentiment = result[0]["label"]
13
+ #confidence = result[0]["score"]
14
+ result = 2 + 2
15
 
16
+ st.write(f"sum: {result}")
17
+ #st.write(f"Confidence: {confidence:.2f}")