polinaeterna HF staff commited on
Commit
4e6b23a
β€’
1 Parent(s): b1d4b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = [], []