Spaces:
Runtime error
Runtime error
imostafizur
commited on
Commit
•
7496c4d
1
Parent(s):
ef010b7
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,10 @@ def main():
|
|
26 |
# Perform sentiment analysis on the input text
|
27 |
result = distilled_student_sentiment_classifier(user_input)
|
28 |
|
|
|
|
|
|
|
|
|
29 |
# Check if the result is a dictionary
|
30 |
if isinstance(result, dict):
|
31 |
# Access the 'scores' dictionary and check if sentiment is negative
|
|
|
26 |
# Perform sentiment analysis on the input text
|
27 |
result = distilled_student_sentiment_classifier(user_input)
|
28 |
|
29 |
+
# Print the type and content of the result for debugging
|
30 |
+
st.write("Result Type:", type(result))
|
31 |
+
st.write("Result Content:", result)
|
32 |
+
|
33 |
# Check if the result is a dictionary
|
34 |
if isinstance(result, dict):
|
35 |
# Access the 'scores' dictionary and check if sentiment is negative
|