mahika123 commited on
Commit
151ce55
Β·
verified Β·
1 Parent(s): 7d52299
Files changed (1) hide show
  1. app.py +22 -23
app.py CHANGED
@@ -85,53 +85,54 @@ def show_info(topic):
85
  }
86
  return responses.get(topic, "Select a category to see the corresponding careers.")
87
 
88
- # Resources Page Info (HTML + Embedded Video)
89
  def resource_block(career):
90
  resources = {
91
  "AI/Machine Learning Engineer": {
92
  "links": [
93
- ("DeepLearning.AI", "https://www.deeplearning.ai"),
94
- ("Fast.ai", "https://www.fast.ai"),
95
- ("Stanford CS229", "https://cs229.stanford.edu/")
96
  ],
97
  "video": "https://www.youtube.com/embed/5NgNicANyqM"
98
  },
99
  "Data Scientist": {
100
  "links": [
101
- ("Kaggle Learn", "https://www.kaggle.com/learn"),
102
- ("Harvard Data Science", "https://online-learning.harvard.edu/series/data-science"),
103
- ("DataCamp", "https://www.datacamp.com")
104
  ],
105
  "video": "https://www.youtube.com/embed/xC-c7E5PK0Y"
106
  },
107
  "Cloud Solutions Architect": {
108
  "links": [
109
- ("AWS Training", "https://aws.amazon.com/training/"),
110
- ("Azure Certifications", "https://learn.microsoft.com/en-us/certifications/"),
111
- ("Google Cloud Boost", "https://cloudskillsboost.google/")
112
  ],
113
  "video": "https://www.youtube.com/embed/Y1OVgGIGvfc"
114
  },
115
  "Cybersecurity Analyst": {
116
  "links": [
117
- ("Cybrary", "https://www.cybrary.it"),
118
- ("MITRE ATT&CK", "https://attack.mitre.org/"),
119
- ("TryHackMe", "https://tryhackme.com")
120
  ],
121
  "video": "https://www.youtube.com/embed/9fWjKkFvQxg"
122
  },
123
  "Statisticians": {
124
  "links": [
125
- ("Statistics with R (Coursera)", "https://www.coursera.org/specializations/statistics"),
126
- ("Khan Academy Statistics", "https://www.khanacademy.org/math/statistics-probability")
 
127
  ],
128
  "video": "https://www.youtube.com/embed/xxpc-HPKN28"
129
  },
130
  "Biomedical Engineer": {
131
  "links": [
132
- ("Johns Hopkins BME", "https://www.bme.jhu.edu/"),
133
- ("edX Biomedical Courses", "https://www.edx.org/learn/biomedical-engineering"),
134
- ("NIH Biomedical Research", "https://www.nih.gov/")
135
  ],
136
  "video": "https://www.youtube.com/embed/NM5EekDaF3g"
137
  }
@@ -142,8 +143,8 @@ def resource_block(career):
142
  return "Select a career to see resources.", ""
143
 
144
  link_html = "<ul>"
145
- for name, url in content["links"]:
146
- link_html += f'<li><a href="{url}" target="_blank">{name}</a></li>'
147
  link_html += "</ul>"
148
 
149
  video_iframe = f"""
@@ -168,7 +169,7 @@ with gr.Blocks(theme=theme, css=custom_css) as chatbot:
168
  description="This tool provides information on STEM Careers."
169
  )
170
 
171
- with gr.Tab("Explore Page"):
172
  gr.Markdown("### Explore STEM Career Categories")
173
  dropdown_explore = gr.Dropdown(
174
  choices=[
@@ -205,5 +206,3 @@ with gr.Blocks(theme=theme, css=custom_css) as chatbot:
205
  )
206
 
207
  chatbot.launch()
208
-
209
-
 
85
  }
86
  return responses.get(topic, "Select a category to see the corresponding careers.")
87
 
88
+ # Resources Page Info
89
  def resource_block(career):
90
  resources = {
91
  "AI/Machine Learning Engineer": {
92
  "links": [
93
+ ("Neural Networks – DeepLearning.AI", "https://www.deeplearning.ai"),
94
+ ("Build ML Models – Fast.ai", "https://www.fast.ai"),
95
+ ("ML Theory – Stanford CS229", "https://cs229.stanford.edu/")
96
  ],
97
  "video": "https://www.youtube.com/embed/5NgNicANyqM"
98
  },
99
  "Data Scientist": {
100
  "links": [
101
+ ("Python & Pandas – Kaggle Learn", "https://www.kaggle.com/learn"),
102
+ ("R Programming – Harvard Data Science", "https://online-learning.harvard.edu/series/data-science"),
103
+ ("Project Practice – DataCamp", "https://www.datacamp.com")
104
  ],
105
  "video": "https://www.youtube.com/embed/xC-c7E5PK0Y"
106
  },
107
  "Cloud Solutions Architect": {
108
  "links": [
109
+ ("AWS Skills – AWS Training", "https://aws.amazon.com/training/"),
110
+ ("Azure Certs – Microsoft Learn", "https://learn.microsoft.com/en-us/certifications/"),
111
+ ("GCP Labs – Google Cloud Boost", "https://cloudskillsboost.google/")
112
  ],
113
  "video": "https://www.youtube.com/embed/Y1OVgGIGvfc"
114
  },
115
  "Cybersecurity Analyst": {
116
  "links": [
117
+ ("Network Security – Cybrary", "https://www.cybrary.it"),
118
+ ("Threat Intel – MITRE ATT&CK", "https://attack.mitre.org/"),
119
+ ("Ethical Hacking – TryHackMe", "https://tryhackme.com")
120
  ],
121
  "video": "https://www.youtube.com/embed/9fWjKkFvQxg"
122
  },
123
  "Statisticians": {
124
  "links": [
125
+ ("Intro to Stats – Coursera (R)", "https://www.coursera.org/specializations/statistics"),
126
+ ("Probability – Khan Academy", "https://www.khanacademy.org/math/statistics-probability"),
127
+ ("Statistical Tools – OpenIntro", "https://www.openintro.org/book/os/")
128
  ],
129
  "video": "https://www.youtube.com/embed/xxpc-HPKN28"
130
  },
131
  "Biomedical Engineer": {
132
  "links": [
133
+ ("Biomedical Research – JHU BME", "https://www.bme.jhu.edu/"),
134
+ ("Medical Devices – edX Courses", "https://www.edx.org/learn/biomedical-engineering"),
135
+ ("Clinical Trials – NIH", "https://www.nih.gov/")
136
  ],
137
  "video": "https://www.youtube.com/embed/NM5EekDaF3g"
138
  }
 
143
  return "Select a career to see resources.", ""
144
 
145
  link_html = "<ul>"
146
+ for label, url in content["links"]:
147
+ link_html += f'<li><strong>{label}</strong>: <a href="{url}" target="_blank">{url}</a></li>'
148
  link_html += "</ul>"
149
 
150
  video_iframe = f"""
 
169
  description="This tool provides information on STEM Careers."
170
  )
171
 
172
+ with gr.Tab("Explore Now"): # βœ… Changed title
173
  gr.Markdown("### Explore STEM Career Categories")
174
  dropdown_explore = gr.Dropdown(
175
  choices=[
 
206
  )
207
 
208
  chatbot.launch()