Spaces:
Runtime error
Runtime error
Commit ·
6e4564b
1
Parent(s): 29d3362
added hate speech visualization
Browse filesFiles changed (5)
- EDxHuggingface.py+20-1
- assets/Acceptable.jpgAdded
- assets/Inappropriate.jpgAdded
- assets/Offensive.jpgAdded
- assets/Violent.jpgAdded
135 unmodified lines136137138139140141142143135 unmodified linesfig.update_layout(height=400, margin=dict(t=50, b=5, l=0, r=0))# Display gauge chartsst.plotly_chart(fig, use_container_width=True)# Display Hate Speech Classificationhate_detection = label_hs[predicted_probabilities_HS[0]['label']]st.text(f"Hate Speech Classification: {hate_detection}")135 unmodified lines136137138139140141142143144145146147148149150151152153154155156157158159160161162135 unmodified linesfig.update_layout(height=400, margin=dict(t=50, b=5, l=0, r=0))# Display gauge chartsst.text("")st.text("")st.text("")st.header("Emotion Detection")st.text("")st.plotly_chart(fig, use_container_width=True)# Display Hate Speech Classificationhate_detection = label_hs[predicted_probabilities_HS[0]['label']]st.text("")st.text("")st.text("")st.header("Hate Speech Analysis")st.text("")col1, col2 = st.columns(2)col1.image(f"assets/{hate_detection}.jpg", width=200)col2.text("")col2.text("")col2.text("")col2.text("")col2.subheader(f"The given text is {hate_detection}")
EDxHuggingface.py+20-1
assets/Acceptable.jpgAdded

assets/Inappropriate.jpgAdded

assets/Offensive.jpgAdded

assets/Violent.jpgAdded
