ND0210 commited on
Commit
d9417c9
·
verified ·
1 Parent(s): 0c4b0fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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
- df = pd.read_excel('C:/Users/Tien Dung/Downloads/Cleaned Data.xlsx')
 
 
 
 
 
 
 
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']