Spaces:
Sleeping
Sleeping
added dream role and fixed interem role bug
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ class Token(BaseModel):
|
|
40 |
class UserCourse(BaseModel):
|
41 |
employmentStatus:str
|
42 |
interimRole:bool
|
43 |
-
|
44 |
motivation:str
|
45 |
learningPreference:str
|
46 |
timeCommitmentPerDay:str
|
@@ -259,11 +259,11 @@ Parameters:
|
|
259 |
Do not include any extra text.
|
260 |
Recommend a course using this information below :
|
261 |
Which of the following best describes you?: {request.employmentStatus}
|
262 |
-
Would you like to prepare for an interim role to gain experience and income while pursuing your dream job?: {request.
|
263 |
-
What is your desired role?: {request.
|
264 |
Why do you want to achieve this desired role?: {request.motivation}
|
265 |
How do you prefer to learn new skills?: {request.learningPreference}
|
266 |
-
How many hours per day can you dedicate to learning?: {request.
|
267 |
What are the biggest challenges or obstacles you face in reaching your dream role?: {request.challenges}
|
268 |
What is your ideal timeframe for achieving your dream role?: {request.timeframeToAchieveDreamRole}
|
269 |
|
|
|
40 |
class UserCourse(BaseModel):
|
41 |
employmentStatus:str
|
42 |
interimRole:bool
|
43 |
+
dreamRole:str
|
44 |
motivation:str
|
45 |
learningPreference:str
|
46 |
timeCommitmentPerDay:str
|
|
|
259 |
Do not include any extra text.
|
260 |
Recommend a course using this information below :
|
261 |
Which of the following best describes you?: {request.employmentStatus}
|
262 |
+
Would you like to prepare for an interim role to gain experience and income while pursuing your dream job?: {request.interimRole}
|
263 |
+
What is your desired role?: {request.dreamRole}
|
264 |
Why do you want to achieve this desired role?: {request.motivation}
|
265 |
How do you prefer to learn new skills?: {request.learningPreference}
|
266 |
+
How many hours per day can you dedicate to learning?: {request.timeCommitmentPerDay}
|
267 |
What are the biggest challenges or obstacles you face in reaching your dream role?: {request.challenges}
|
268 |
What is your ideal timeframe for achieving your dream role?: {request.timeframeToAchieveDreamRole}
|
269 |
|
utils.py
CHANGED
@@ -231,7 +231,7 @@ def user_details_func(db_uri: str, document: dict) -> str:
|
|
231 |
db = client["crayonics"]
|
232 |
collection = db["users"]
|
233 |
streaks_collection = db["Streaks"]
|
234 |
-
|
235 |
# Insert the document
|
236 |
doc = collection.find_one({"_id":ObjectId(document.get("user_id"))})
|
237 |
|
|
|
231 |
db = client["crayonics"]
|
232 |
collection = db["users"]
|
233 |
streaks_collection = db["Streaks"]
|
234 |
+
questionaire_collection = db["Streaks"]
|
235 |
# Insert the document
|
236 |
doc = collection.find_one({"_id":ObjectId(document.get("user_id"))})
|
237 |
|