Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- app.py +1 -1
- facility_predict.py +1 -1
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def predict_batch_from_csv(input_file, output_file):
|
|
| 13 |
|
| 14 |
# Iterate over rows with tqdm for progress tracking
|
| 15 |
for _, row in tqdm(batch_data.iterrows(), total=len(batch_data)):
|
| 16 |
-
text = row['
|
| 17 |
|
| 18 |
if pd.isnull(text):
|
| 19 |
cleaned_text = ""
|
|
|
|
| 13 |
|
| 14 |
# Iterate over rows with tqdm for progress tracking
|
| 15 |
for _, row in tqdm(batch_data.iterrows(), total=len(batch_data)):
|
| 16 |
+
text = row['facility_name'] # Replace 'facility_name' with the actual column name containing the text data
|
| 17 |
|
| 18 |
if pd.isnull(text):
|
| 19 |
cleaned_text = ""
|
facility_predict.py
CHANGED
|
@@ -164,7 +164,7 @@ def predict_batch_from_csv(input_file, output_file):
|
|
| 164 |
# Iterate over rows with tqdm for progress tracking
|
| 165 |
# Iterate over rows with tqdm for progress tracking
|
| 166 |
for _, row in tqdm(batch_data.iterrows(), total=len(batch_data)):
|
| 167 |
-
text = row['
|
| 168 |
|
| 169 |
if pd.isnull(text):
|
| 170 |
cleaned_text = ""
|
|
|
|
| 164 |
# Iterate over rows with tqdm for progress tracking
|
| 165 |
# Iterate over rows with tqdm for progress tracking
|
| 166 |
for _, row in tqdm(batch_data.iterrows(), total=len(batch_data)):
|
| 167 |
+
text = row['facility_name'] # Replace 'facility_name' with the actual column name containing the text data
|
| 168 |
|
| 169 |
if pd.isnull(text):
|
| 170 |
cleaned_text = ""
|