Akhilgautam30 commited on
Commit
e6c04d4
·
1 Parent(s): 3cce2b4
Files changed (2) hide show
  1. .github/workflows/main.yml +1 -1
  2. model_utils.py +1 -1
.github/workflows/main.yml CHANGED
@@ -16,4 +16,4 @@ jobs:
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
- run: git push --force https://akhilgautam2011%40gmail.com:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Akhilgautam30/personality_assesment main
 
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push https://akhilgautam2011%40gmail.com:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Akhilgautam30/personality_assesment main
model_utils.py CHANGED
@@ -83,7 +83,7 @@ def single_predict(model, text, traits=['cAGR', 'cCON', 'cEXT', 'cOPN', 'cNEU'])
83
  probs = tf.math.sigmoid(logits).numpy()
84
  print("sigmoid function-----")
85
  predictions = np.where(probs > 0.5, 1, 0)
86
- print("predictions function-----")
87
  for t, s in zip(traits, probs[0]):
88
  traits_scores[t] = s
89
  for t, l in zip(traits, predictions[0]):
 
83
  probs = tf.math.sigmoid(logits).numpy()
84
  print("sigmoid function-----")
85
  predictions = np.where(probs > 0.5, 1, 0)
86
+ print("predictions function------")
87
  for t, s in zip(traits, probs[0]):
88
  traits_scores[t] = s
89
  for t, l in zip(traits, predictions[0]):