Update app.py
Browse files
app.py
CHANGED
|
@@ -171,7 +171,7 @@ def predict_sdg_from_csv(file, progress=gr.Progress()):
|
|
| 171 |
prediction_score = []
|
| 172 |
|
| 173 |
# Preprocess text and make predictions
|
| 174 |
-
for text_input in progress.tqdm(text_list, desc="Analysing data":
|
| 175 |
time.sleep(0.02) # Sleep to avoid rate limiting
|
| 176 |
cleaned_text = prep_text(text_input)
|
| 177 |
tokenized_text = tokenizer(cleaned_text, return_tensors="pt", truncation=True, max_length=512, padding=True)
|
|
|
|
| 171 |
prediction_score = []
|
| 172 |
|
| 173 |
# Preprocess text and make predictions
|
| 174 |
+
for text_input in progress.tqdm(text_list, desc="Analysing data"):
|
| 175 |
time.sleep(0.02) # Sleep to avoid rate limiting
|
| 176 |
cleaned_text = prep_text(text_input)
|
| 177 |
tokenized_text = tokenizer(cleaned_text, return_tensors="pt", truncation=True, max_length=512, padding=True)
|