import streamlit as st from transformers import pipeline sentiment_pipeline = pipeline("sentiment-analysis") st.title("Calc 2+2") st.write("Введите предложение: ") user_input = st.text_input("") if user_input: #result = sentiment_pipeline(user_input) #sentiment = result[0]["label"] #confidence = result[0]["score"] result = 2 + 2 st.write(f"sum: {result}") #st.write(f"Confidence: {confidence:.2f}")