KrSharangrav commited on
Commit
8491c18
·
1 Parent(s): e0db6c4

New App.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,8 +39,8 @@ if st.button("Get Response"):
39
  st.write("### Response:")
40
  st.markdown(ai_response)
41
  st.write("### Sentiment Analysis:")
42
- st.write(f"**Sentiment Detected:** {sentiment_label} ({sentiment_confidence*100:.f}% confidence)")
43
  st.write("### Category Extraction:")
44
- st.write(f"**Category Detected:** {topic_label} ({topic_confidence*100:.f}% confidence)")
45
- else:
46
  st.warning("⚠️ Please enter a question or text for analysis.")
 
39
  st.write("### Response:")
40
  st.markdown(ai_response)
41
  st.write("### Sentiment Analysis:")
42
+ st.write(f"**Sentiment Detected:** {sentiment_label} ({sentiment_confidence:.2f} confidence)")
43
  st.write("### Category Extraction:")
44
+ st.write(f"**Category Detected:** {topic_label} ({topic_confidence:.2f} confidence)")
45
+ else:
46
  st.warning("⚠️ Please enter a question or text for analysis.")