Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|