Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,7 @@ def run_quality_check(dataset, column, batch_size, num_examples):
|
|
| 93 |
except Exception as error:
|
| 94 |
yield f"❌ {error}", gr.BarPlot(), pd.DataFrame(), pd.DataFrame(), pd.DataFrame(), pd.DataFrame(),
|
| 95 |
return
|
| 96 |
-
texts = data[column].to_list()
|
| 97 |
# texts_sample = data.sample(100, shuffle=True, seed=16).to_pandas()
|
| 98 |
# batch_size = 100
|
| 99 |
predictions, texts_processed = [], []
|
|
|
|
| 93 |
except Exception as error:
|
| 94 |
yield f"❌ {error}", gr.BarPlot(), pd.DataFrame(), pd.DataFrame(), pd.DataFrame(), pd.DataFrame(),
|
| 95 |
return
|
| 96 |
+
texts = [text[:10000] for text in data[column].to_list()]
|
| 97 |
# texts_sample = data.sample(100, shuffle=True, seed=16).to_pandas()
|
| 98 |
# batch_size = 100
|
| 99 |
predictions, texts_processed = [], []
|