jbraha commited on
Commit
3cbd9e3
1 Parent(s): 0b11182

fix type error

Browse files
Files changed (3) hide show
  1. .github/workflows/main.yml +1 -1
  2. app.py +4 -5
  3. res/pytorch_model.bin +0 -3
.github/workflows/main.yml CHANGED
@@ -23,4 +23,4 @@ jobs:
23
  && git switch main
24
  && git merge origin/milestone-3
25
  && git push
26
- && git push https://jbraha:$HF_TOKEN@huggingface.co/spaces/jbraha/aiproject
 
23
  && git switch main
24
  && git merge origin/milestone-3
25
  && git push
26
+ && git push -f https://jbraha:$HF_TOKEN@huggingface.co/spaces/jbraha/aiproject
app.py CHANGED
@@ -79,7 +79,6 @@ if st.button('Analyze'):
79
  if option == 'Fine-Tuned':
80
  result = unpack(result)
81
  add_to_table(input, result, output)
82
- # st.table(output)
83
  else:
84
  st.write(result)
85
  else:
@@ -88,10 +87,10 @@ else:
88
 
89
 
90
  for string in strings:
91
- result = classifier(string)
92
- result = result[0]
93
- result = unpack(result)
94
- add_to_table(string, result, output)
95
 
96
  st.table(output)
97
 
 
79
  if option == 'Fine-Tuned':
80
  result = unpack(result)
81
  add_to_table(input, result, output)
 
82
  else:
83
  st.write(result)
84
  else:
 
87
 
88
 
89
  for string in strings:
90
+ item = classifier(string)
91
+ item = item[0]
92
+ item = unpack(item)
93
+ add_to_table(string, item, output)
94
 
95
  st.table(output)
96
 
res/pytorch_model.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:142c20f08e15efd1df3f04f95f95f426e6f1784bea86e5f2524f367853a99f00
3
- size 438020213