maxspad commited on
Commit
ec81259
β€’
1 Parent(s): b90b0d0

fixed pickle error

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. app.py +2 -4
README.md CHANGED
@@ -3,6 +3,7 @@ title: Nlp Qual Space
3
  emoji: πŸ“Š
4
  colorFrom: purple
5
  colorTo: pink
 
6
  sdk: streamlit
7
  sdk_version: 1.15.2
8
  app_file: app.py
 
3
  emoji: πŸ“Š
4
  colorFrom: purple
5
  colorTo: pink
6
+ python_version: 3.10.9
7
  sdk: streamlit
8
  sdk_version: 1.15.2
9
  app_file: app.py
app.py CHANGED
@@ -59,14 +59,12 @@ for i, mn in enumerate(models_to_load):
59
  lc_placeholder.empty()
60
 
61
  ### Load example data
62
- # examples = load_pickle('test.pkl')
63
 
64
  ### Process input
65
- # ex = examples['comment'].sample(1).tolist()[0]
66
- ex = 'hello you did a good job'
67
  try:
68
  ex = ex.strip().replace('_x000D_', '').replace('nan', 'blank')
69
- # ex = 'hello you did a good job'
70
  except:
71
  ex = 'blank'
72
  if 'comment' not in st.session_state:
 
59
  lc_placeholder.empty()
60
 
61
  ### Load example data
62
+ examples = load_pickle('test.pkl')
63
 
64
  ### Process input
65
+ ex = examples['comment'].sample(1).tolist()[0]
 
66
  try:
67
  ex = ex.strip().replace('_x000D_', '').replace('nan', 'blank')
 
68
  except:
69
  ex = 'blank'
70
  if 'comment' not in st.session_state: