limitedonly41 commited on
Commit
6c35f63
·
verified ·
1 Parent(s): 8e73ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -162,6 +162,8 @@ Categorize the website into one of the 3 categories:
162
  def classify_urls_from_csv(csv_file):
163
  # Read CSV file and extract URLs from the first column
164
  df = pd.read_csv(csv_file)
 
 
165
  urls = df.iloc[:, 0].tolist()
166
 
167
  # Classify each URL and store the results
 
162
  def classify_urls_from_csv(csv_file):
163
  # Read CSV file and extract URLs from the first column
164
  df = pd.read_csv(csv_file)
165
+ df.iloc[:, 0] = df.iloc[:, 0].str.replace(';', '').str.strip()
166
+
167
  urls = df.iloc[:, 0].tolist()
168
 
169
  # Classify each URL and store the results