aymen12 commited on
Commit
8dd6fac
1 Parent(s): 4d5cc80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import pandas as pd
3
  from sklearn.model_selection import train_test_split
4
  from sklearn.feature_extraction.text import TfidfVectorizer
@@ -6,8 +5,9 @@ from sklearn.naive_bayes import MultinomialNB
6
  import joblib
7
  import gradio as gr
8
  import datasets
9
- df_true = datasets.load_dataset('csv', data_files='True.csv')
10
- df_fake = datasets.load_dataset('csv', data_files='Fake.csv')
 
11
  df_true['label'] = 1
12
  df_fake['label'] = 0
13
  df_combined = pd.concat([df_true, df_fake])
 
 
1
  import pandas as pd
2
  from sklearn.model_selection import train_test_split
3
  from sklearn.feature_extraction.text import TfidfVectorizer
 
5
  import joblib
6
  import gradio as gr
7
  import datasets
8
+
9
+ df_true = pd.read_csv('True.csv')
10
+ df_fake = pd.read_csv('Fake.csv')
11
  df_true['label'] = 1
12
  df_fake['label'] = 0
13
  df_combined = pd.concat([df_true, df_fake])