udbhav90 commited on
Commit
1318157
·
verified ·
1 Parent(s): d27fc20

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ if st.button("🔍 Predict Personality"):
27
  "Going_outside": Going_outside,
28
  "Friends_circle_size": Friends_circle_size,
29
  "Post_frequency": Post_frequency,
30
- "Stage_fear": 1 if Stage_fear.lower() == "yes" else 0,
31
- "Drained_after_socializing": 1 if Drained_after_socializing.lower() == "yes" else 0
32
  }
33
 
34
  res = requests.post(f"{API_BASE}/v1/personality/predict", json=payload)
 
27
  "Going_outside": Going_outside,
28
  "Friends_circle_size": Friends_circle_size,
29
  "Post_frequency": Post_frequency,
30
+ "Stage_fear": Stage_fear,
31
+ "Drained_after_socializing": Drained_after_socializing
32
  }
33
 
34
  res = requests.post(f"{API_BASE}/v1/personality/predict", json=payload)