ashhadahsan commited on
Commit
7673771
·
1 Parent(s): c704355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -180,7 +180,7 @@ if st.button("Process"):
180
  classes = []
181
  with st.spinner(text="creating output file"):
182
  for x in stqdm(range(len(text))):
183
- tf_o = tf.nn.softmax(tf_outputs["logits"][x], axis=-1)
184
  label = np.argmax(tf_o, axis=0)
185
  keys = model_classes
186
  classes.append(keys.get(label))
@@ -221,7 +221,7 @@ if st.button("Process"):
221
  classes = []
222
  with st.spinner(text="creating output file"):
223
  for x in stqdm(range(len(text))):
224
- tf_o = tf.nn.softmax(tf_outputs["logits"][x], axis=-1)
225
  label = np.argmax(tf_o, axis=0)
226
  keys = model_classes
227
  classes.append(keys.get(label))
@@ -242,4 +242,4 @@ if st.button("Process"):
242
  )
243
  st.info("Text column must have amazon reviews", icon="ℹ️")
244
  except BaseException as e:
245
- logging.exception("An exception was occured")
 
180
  classes = []
181
  with st.spinner(text="creating output file"):
182
  for x in stqdm(range(len(text))):
183
+ tf_o = softmax(tf_outputs["logits"][x], axis=-1)
184
  label = np.argmax(tf_o, axis=0)
185
  keys = model_classes
186
  classes.append(keys.get(label))
 
221
  classes = []
222
  with st.spinner(text="creating output file"):
223
  for x in stqdm(range(len(text))):
224
+ tf_o = softmax(tf_outputs["logits"][x], axis=-1)
225
  label = np.argmax(tf_o, axis=0)
226
  keys = model_classes
227
  classes.append(keys.get(label))
 
242
  )
243
  st.info("Text column must have amazon reviews", icon="ℹ️")
244
  except BaseException as e:
245
+ logging.exception("An exception was occurred")