Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ if st.button("Analyze Sentiment"):
|
|
20 |
if user_input:
|
21 |
try:
|
22 |
predictions = model([user_input])
|
23 |
-
st.write(f"Prediction
|
24 |
except Exception as e:
|
25 |
st.error(f"Error during prediction: {e}")
|
26 |
else:
|
|
|
20 |
if user_input:
|
21 |
try:
|
22 |
predictions = model([user_input])
|
23 |
+
st.write(f"Prediction: {predictions[0]}")
|
24 |
except Exception as e:
|
25 |
st.error(f"Error during prediction: {e}")
|
26 |
else:
|