Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
10 |
-
|
|
|
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])
|