Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.title("Sentiment Analysis with HuggingFace Spaces")
|
4 |
+
st.write("Enter a sentence to analyze text's Emotion:")
|
5 |
+
|
6 |
+
user_input = st.text_input("")
|
7 |
+
if user_input:
|
8 |
+
result = ''
|
9 |
+
sentiment = ''
|
10 |
+
confidence = ''
|
11 |
+
|
12 |
+
st.write(f"Sentiment: {sentiment}")
|
13 |
+
st.write(f"Confidence: {confidence:.2f}")
|