NativeVex commited on
Commit
170f9bb
1 Parent(s): d75c440

minor whitespace

Browse files
Files changed (1) hide show
  1. language_models_project/app.py +2 -3
language_models_project/app.py CHANGED
@@ -70,7 +70,6 @@ def infer(text: str) -> List[Dict[str, float]]:
70
  predictions = np.zeros(probs.shape)
71
  predictions[np.where(probs >= 0.5)] = 1
72
  predictions = pd.Series(predictions == 1)
73
-
74
  l = pd.Series(zip(predictions.tolist(), probs.tolist())).apply(str)
75
  l.index = [
76
  "toxic",
@@ -109,8 +108,8 @@ if st.button("Classify"):
109
  else:
110
  st.write(
111
  "To render the dataframe, all inputs must be sequentially"
112
- "processed before displaying. Please allow a few minutes for longer"
113
- "inputs."
114
  )
115
  internal_list = [infer(text=i) for i in data]
116
  j = pd.DataFrame(internal_list)
 
70
  predictions = np.zeros(probs.shape)
71
  predictions[np.where(probs >= 0.5)] = 1
72
  predictions = pd.Series(predictions == 1)
 
73
  l = pd.Series(zip(predictions.tolist(), probs.tolist())).apply(str)
74
  l.index = [
75
  "toxic",
 
108
  else:
109
  st.write(
110
  "To render the dataframe, all inputs must be sequentially"
111
+ " processed before displaying. Please allow a few minutes for longer"
112
+ " inputs."
113
  )
114
  internal_list = [infer(text=i) for i in data]
115
  j = pd.DataFrame(internal_list)