Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,14 @@ import numpy as np
|
|
| 4 |
from sklearn.naive_bayes import MultinomialNB
|
| 5 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
X = df['Title']
|
| 10 |
y = df['Encoded Tag']
|
|
|
|
| 4 |
from sklearn.naive_bayes import MultinomialNB
|
| 5 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
| 6 |
|
| 7 |
+
folder_path = 'https://drive.google.com/drive/u/0/folders/1nGfHZLXL47gh_v5TX1DBeTAFoBASS4FW'
|
| 8 |
+
|
| 9 |
+
file_path = folder_path + "/Cleaned Data.xlsx"
|
| 10 |
+
|
| 11 |
+
output_path = "data.xlsx" # Đường dẫn và tên file đầu ra
|
| 12 |
+
gdown.download(file_path, output_path, quiet=False)
|
| 13 |
+
|
| 14 |
+
df = pd.read_excel(output_path)
|
| 15 |
|
| 16 |
X = df['Title']
|
| 17 |
y = df['Encoded Tag']
|