azizbarank commited on
Commit
6476a97
·
1 Parent(s): 1785380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import os
2
  os.system('pip install nltk')
3
  os.system('pip install sklearn')
 
 
 
4
 
5
  import streamlit as st
6
  import pandas as pd
@@ -47,8 +50,7 @@ def classifier_evaluation(y_pred, y_test):
47
  st.text('Model Report:\n ' + classification_report(y_pred, y_test))
48
 
49
 
50
-
51
- df = pd.read_csv("C:\Users\User\Downloads\toxicity.csv")
52
 
53
  def clean_text_2(text):
54
  # make text lowercase
 
1
  import os
2
  os.system('pip install nltk')
3
  os.system('pip install sklearn')
4
+ os.system('pip install wget')
5
+
6
+ !wget https://raw.githubusercontent.com/surge-ai/copilot-toxicity/main/toxicity.csv
7
 
8
  import streamlit as st
9
  import pandas as pd
 
50
  st.text('Model Report:\n ' + classification_report(y_pred, y_test))
51
 
52
 
53
+ df = pd.read_csv('toxicity.csv')
 
54
 
55
  def clean_text_2(text):
56
  # make text lowercase