ginipick commited on
Commit
8e2af3c
·
verified ·
1 Parent(s): 37d7202

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,10 +44,10 @@ try:
44
  with open("mbti.json", "r", encoding="utf-8") as f:
45
  # Expecting a single MBTI key string, e.g., "entj"
46
  mbti_key = json.load(f)
47
- mbti_key = mbti_key.strip().lower() if isinstance(mbti_key, str) else "intj"
48
  except Exception as e:
49
  logging.error(f"Error reading mbti.json: {e}")
50
- mbti_key = "intj" # default
51
 
52
  mbti_mapping = {
53
  "intj": "INTJ (The Architect) - Future-oriented with innovative strategies and thorough analysis. Example: [Dana Scully](https://en.wikipedia.org/wiki/Dana_Scully)",
@@ -69,7 +69,7 @@ mbti_mapping = {
69
  }
70
 
71
  # Use the mapped MBTI description, defaulting to intj if not found
72
- fixed_mbti = mbti_mapping.get(mbti_key, mbti_mapping["intj"])
73
 
74
  # =============================================================================
75
  # Test API Connection function
 
44
  with open("mbti.json", "r", encoding="utf-8") as f:
45
  # Expecting a single MBTI key string, e.g., "entj"
46
  mbti_key = json.load(f)
47
+ mbti_key = mbti_key.strip().lower() if isinstance(mbti_key, str) else "ESTJ"
48
  except Exception as e:
49
  logging.error(f"Error reading mbti.json: {e}")
50
+ mbti_key = "ESTJ" # default
51
 
52
  mbti_mapping = {
53
  "intj": "INTJ (The Architect) - Future-oriented with innovative strategies and thorough analysis. Example: [Dana Scully](https://en.wikipedia.org/wiki/Dana_Scully)",
 
69
  }
70
 
71
  # Use the mapped MBTI description, defaulting to intj if not found
72
+ fixed_mbti = mbti_mapping.get(mbti_key, mbti_mapping["ESTJ"])
73
 
74
  # =============================================================================
75
  # Test API Connection function