Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,17 +126,18 @@ TRAINING_FORMATS = {
|
|
| 126 |
"production_time": "High",
|
| 127 |
"engagement": "High",
|
| 128 |
"scalability": "High",
|
| 129 |
-
"interaction": "Low"
|
|
|
|
| 130 |
},
|
| 131 |
-
"
|
| 132 |
-
"name": "
|
| 133 |
-
"description": "
|
| 134 |
-
"best_for": ["
|
| 135 |
-
"budget": "
|
| 136 |
-
"production_time": "
|
| 137 |
-
"engagement": "
|
| 138 |
-
"scalability": "
|
| 139 |
-
"interaction": "
|
| 140 |
},
|
| 141 |
"microlearning_modules": {
|
| 142 |
"name": "Microlearning Modules",
|
|
@@ -250,12 +251,12 @@ def calculate_format_scores(audience_type, budget, objectives, goals, timeline,
|
|
| 250 |
|
| 251 |
# Audience type matching
|
| 252 |
audience_matches = {
|
| 253 |
-
"Corporate employees": ["elearning_courses", "webinar_series", "blended_learning", "mobile_learning"],
|
| 254 |
-
"Technical professionals": ["video_tutorials", "simulation_training", "
|
| 255 |
-
"Sales teams": ["gamified_learning", "mobile_learning", "
|
| 256 |
"Remote workers": ["mobile_learning", "elearning_courses", "webinar_series", "microlearning_modules"],
|
| 257 |
-
"New hires": ["blended_learning", "elearning_courses", "
|
| 258 |
-
"Managers/Leaders": ["webinar_series", "blended_learning", "
|
| 259 |
"External customers": ["video_tutorials", "webinar_series", "pdf_guides", "elearning_courses"],
|
| 260 |
"Field workers": ["mobile_learning", "microlearning_modules", "video_tutorials", "pdf_guides"]
|
| 261 |
}
|
|
@@ -265,13 +266,13 @@ def calculate_format_scores(audience_type, budget, objectives, goals, timeline,
|
|
| 265 |
|
| 266 |
# Objectives matching
|
| 267 |
objective_matches = {
|
| 268 |
-
"Skill development": ["
|
| 269 |
-
"Compliance training": ["elearning_courses", "pdf_guides", "webinar_series", "blended_learning"],
|
| 270 |
-
"Product knowledge": ["video_tutorials", "elearning_courses", "webinar_series", "mobile_learning"],
|
| 271 |
-
"Onboarding": ["blended_learning", "elearning_courses", "video_tutorials", "
|
| 272 |
"Certification prep": ["elearning_courses", "blended_learning", "webinar_series", "pdf_guides"],
|
| 273 |
-
"Behavior change": ["gamified_learning", "
|
| 274 |
-
"Knowledge sharing": ["webinar_series", "pdf_guides", "elearning_courses", "video_tutorials"]
|
| 275 |
}
|
| 276 |
|
| 277 |
for objective in objectives:
|
|
@@ -288,11 +289,11 @@ def calculate_format_scores(audience_type, budget, objectives, goals, timeline,
|
|
| 288 |
|
| 289 |
# Goals matching
|
| 290 |
goal_matches = {
|
| 291 |
-
"Reduce training costs": ["microlearning_modules", "pdf_guides", "webinar_series", "elearning_courses"],
|
| 292 |
-
"Improve engagement": ["gamified_learning", "
|
| 293 |
"Scale training globally": ["elearning_courses", "mobile_learning", "webinar_series", "microlearning_modules"],
|
| 294 |
-
"Faster deployment": ["microlearning_modules", "pdf_guides", "webinar_series", "mobile_learning"],
|
| 295 |
-
"Better retention": ["gamified_learning", "
|
| 296 |
"Measurable results": ["elearning_courses", "gamified_learning", "simulation_training", "blended_learning"]
|
| 297 |
}
|
| 298 |
|
|
@@ -485,6 +486,11 @@ with col2:
|
|
| 485 |
st.markdown(f'<div class="format-title">{format_data["name"]} <span class="match-score">{score}% Match</span></div>', unsafe_allow_html=True)
|
| 486 |
st.markdown(f'<div class="format-description">{format_data["description"]}</div>', unsafe_allow_html=True)
|
| 487 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
# Show key details
|
| 489 |
st.markdown(f"""
|
| 490 |
<div class="format-details">
|
|
|
|
| 126 |
"production_time": "High",
|
| 127 |
"engagement": "High",
|
| 128 |
"scalability": "High",
|
| 129 |
+
"interaction": "Low",
|
| 130 |
+
"sample_link": "https://youtu.be/HPUWGE9B_UQ?si=a4vr6BL43eMCR9Th"
|
| 131 |
},
|
| 132 |
+
"powerpoint_presentations": {
|
| 133 |
+
"name": "PowerPoint Presentations",
|
| 134 |
+
"description": "Slide-based presentations for structured information delivery",
|
| 135 |
+
"best_for": ["Information sharing", "Concepts explanation", "Quick updates"],
|
| 136 |
+
"budget": "Very Low",
|
| 137 |
+
"production_time": "Low",
|
| 138 |
+
"engagement": "Low",
|
| 139 |
+
"scalability": "High",
|
| 140 |
+
"interaction": "Low"
|
| 141 |
},
|
| 142 |
"microlearning_modules": {
|
| 143 |
"name": "Microlearning Modules",
|
|
|
|
| 251 |
|
| 252 |
# Audience type matching
|
| 253 |
audience_matches = {
|
| 254 |
+
"Corporate employees": ["elearning_courses", "webinar_series", "blended_learning", "mobile_learning", "powerpoint_presentations"],
|
| 255 |
+
"Technical professionals": ["video_tutorials", "simulation_training", "elearning_courses"],
|
| 256 |
+
"Sales teams": ["gamified_learning", "mobile_learning", "powerpoint_presentations", "microlearning_modules"],
|
| 257 |
"Remote workers": ["mobile_learning", "elearning_courses", "webinar_series", "microlearning_modules"],
|
| 258 |
+
"New hires": ["blended_learning", "elearning_courses", "powerpoint_presentations", "video_tutorials"],
|
| 259 |
+
"Managers/Leaders": ["webinar_series", "blended_learning", "powerpoint_presentations", "elearning_courses"],
|
| 260 |
"External customers": ["video_tutorials", "webinar_series", "pdf_guides", "elearning_courses"],
|
| 261 |
"Field workers": ["mobile_learning", "microlearning_modules", "video_tutorials", "pdf_guides"]
|
| 262 |
}
|
|
|
|
| 266 |
|
| 267 |
# Objectives matching
|
| 268 |
objective_matches = {
|
| 269 |
+
"Skill development": ["simulation_training", "video_tutorials", "gamified_learning", "elearning_courses"],
|
| 270 |
+
"Compliance training": ["elearning_courses", "pdf_guides", "webinar_series", "blended_learning", "powerpoint_presentations"],
|
| 271 |
+
"Product knowledge": ["video_tutorials", "elearning_courses", "webinar_series", "mobile_learning", "powerpoint_presentations"],
|
| 272 |
+
"Onboarding": ["blended_learning", "elearning_courses", "video_tutorials", "powerpoint_presentations"],
|
| 273 |
"Certification prep": ["elearning_courses", "blended_learning", "webinar_series", "pdf_guides"],
|
| 274 |
+
"Behavior change": ["gamified_learning", "simulation_training", "microlearning_modules", "video_tutorials"],
|
| 275 |
+
"Knowledge sharing": ["webinar_series", "pdf_guides", "elearning_courses", "video_tutorials", "powerpoint_presentations"]
|
| 276 |
}
|
| 277 |
|
| 278 |
for objective in objectives:
|
|
|
|
| 289 |
|
| 290 |
# Goals matching
|
| 291 |
goal_matches = {
|
| 292 |
+
"Reduce training costs": ["microlearning_modules", "pdf_guides", "webinar_series", "elearning_courses", "powerpoint_presentations"],
|
| 293 |
+
"Improve engagement": ["gamified_learning", "simulation_training", "video_tutorials", "mobile_learning"],
|
| 294 |
"Scale training globally": ["elearning_courses", "mobile_learning", "webinar_series", "microlearning_modules"],
|
| 295 |
+
"Faster deployment": ["microlearning_modules", "pdf_guides", "webinar_series", "mobile_learning", "powerpoint_presentations"],
|
| 296 |
+
"Better retention": ["gamified_learning", "simulation_training", "microlearning_modules", "video_tutorials"],
|
| 297 |
"Measurable results": ["elearning_courses", "gamified_learning", "simulation_training", "blended_learning"]
|
| 298 |
}
|
| 299 |
|
|
|
|
| 486 |
st.markdown(f'<div class="format-title">{format_data["name"]} <span class="match-score">{score}% Match</span></div>', unsafe_allow_html=True)
|
| 487 |
st.markdown(f'<div class="format-description">{format_data["description"]}</div>', unsafe_allow_html=True)
|
| 488 |
|
| 489 |
+
# Add sample link if available
|
| 490 |
+
if "sample_link" in format_data:
|
| 491 |
+
st.markdown(f'<a href="{format_data["sample_link"]}" target="_blank" style="color: #1f77b4; text-decoration: none;">🔗 View Sample</a>', unsafe_allow_html=True)
|
| 492 |
+
st.markdown("<br>", unsafe_allow_html=True)
|
| 493 |
+
|
| 494 |
# Show key details
|
| 495 |
st.markdown(f"""
|
| 496 |
<div class="format-details">
|