kousthubh AayushKumarSah commited on
Commit
284a9a0
·
verified ·
1 Parent(s): df66e8f

Update story_engine.py (#2)

Browse files

- Update story_engine.py (4873b0c00d1b864377317282907ee900b58eec4a)


Co-authored-by: Aayush Kumar <[email protected]>

Files changed (1) hide show
  1. story_engine.py +1 -27
story_engine.py CHANGED
@@ -125,32 +125,6 @@ def continue_story(story_history, selected_option):
125
  print(f"Error continuing story: {e}")
126
  return "An error occurred while continuing the story. Please try again.", ["Retry", "Go back", "Choose different option", "Start over"]
127
 
128
- # def predict_personality(choices_text):
129
- # prompt = f"""
130
- # Analyze the following choices made by the user and determine their personality type:
131
-
132
- # Choices:
133
- # {choices_text}
134
-
135
- # The choices are labeled as follows:
136
- # 1. Emotional
137
- # 2. Rational
138
- # 3. Diplomatic
139
- # 4. Angry
140
-
141
- # Based on the frequency and pattern of choices, predict the user's personality type.
142
- # Give a short summary of their personality traits.
143
-
144
- # ### Give me only output
145
- # """
146
-
147
- # response = client.chat.completions.create(
148
- # model="llama3-70b-8192",
149
- # messages=[{"role": "user", "content": prompt}],
150
- # temperature=0.3,
151
- # max_tokens=300
152
- # )
153
-
154
- # return response.choices[0].message.content
155
 
156
 
 
125
  print(f"Error continuing story: {e}")
126
  return "An error occurred while continuing the story. Please try again.", ["Retry", "Go back", "Choose different option", "Start over"]
127
 
128
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130