Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -160,51 +160,41 @@ with gr.Blocks(theme=theme, css=custom_css) as chatbot:
|
|
| 160 |
gr.Image(display_image)
|
| 161 |
|
| 162 |
with gr.Tab("ChatBot"):
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
|
| 172 |
-
with gr.Tab("Explore Now"): # ✅ Changed title
|
| 173 |
-
gr.Markdown("### Explore STEM Career Categories")
|
| 174 |
-
dropdown_explore = gr.Dropdown(
|
| 175 |
-
choices=[
|
| 176 |
-
"Highest Paying STEM Jobs",
|
| 177 |
-
"Most Flexible STEM Jobs",
|
| 178 |
-
"Most Creative STEM Jobs",
|
| 179 |
-
"Fastest Growing STEM Jobs",
|
| 180 |
-
"Low-Stress STEM Jobs"
|
| 181 |
-
],
|
| 182 |
-
label="Choose a Category"
|
| 183 |
-
)
|
| 184 |
-
output_explore = gr.Markdown()
|
| 185 |
-
|
| 186 |
-
dropdown_explore.change(fn=show_info, inputs=dropdown_explore, outputs=output_explore)
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
with gr.Tab("Resources Page"):
|
| 190 |
-
gr.Markdown("### Career-Specific Educational Resources")
|
| 191 |
-
dropdown_resources = gr.Dropdown(
|
| 192 |
-
choices=[
|
| 193 |
-
"AI/Machine Learning Engineer",
|
| 194 |
-
"Data Scientist",
|
| 195 |
-
"Cloud Solutions Architect",
|
| 196 |
-
"Cybersecurity Analyst",
|
| 197 |
-
"Statisticians",
|
| 198 |
-
"Biomedical Engineer"
|
| 199 |
-
],
|
| 200 |
-
label="Choose a Career"
|
| 201 |
-
)
|
| 202 |
-
output_links = gr.HTML()
|
| 203 |
-
output_video = gr.HTML()
|
| 204 |
-
dropdown_resources.change(
|
| 205 |
-
fn=resource_block,
|
| 206 |
-
inputs=dropdown_resources,
|
| 207 |
-
outputs=[output_links, output_video]
|
| 208 |
-
)
|
| 209 |
-
|
| 210 |
-
chatbot.launch()
|
|
|
|
| 160 |
gr.Image(display_image)
|
| 161 |
|
| 162 |
with gr.Tab("ChatBot"):
|
| 163 |
+
gr.ChatInterface(
|
| 164 |
+
respond,
|
| 165 |
+
type="messages",
|
| 166 |
+
title="Hi, I'm Path Pilot!",
|
| 167 |
+
textbox=gr.Textbox(placeholder="Share your interests and explore more on your career of choice!"),
|
| 168 |
+
description='This tool provides information on STEM Careers. All information is sourced from [census.gov](https://www.census.gov/).'
|
| 169 |
+
)
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
with gr.Tab("Explore Now"): # ✅ Changed title
|
| 173 |
+
gr.Markdown("### Explore STEM Career Categories")
|
| 174 |
+
dropdown_explore = gr.Dropdown(
|
| 175 |
+
choices=[
|
| 176 |
+
"Highest Paying STEM Jobs",
|
| 177 |
+
"Most Flexible STEM Jobs",
|
| 178 |
+
"Most Creative STEM Jobs",
|
| 179 |
+
"Fastest Growing STEM Jobs",
|
| 180 |
+
"Low-Stress STEM Jobs"
|
| 181 |
+
],
|
| 182 |
+
label="Choose a Category"
|
| 183 |
+
)
|
| 184 |
+
output_explore = gr.Markdown()
|
| 185 |
+
|
| 186 |
+
dropdown_explore.change(fn=show_info, inputs=dropdown_explore, outputs=output_explore)
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
with gr.Tab("Resources Page"):
|
| 190 |
+
gr.Markdown("### Career-Specific Educational Resources")
|
| 191 |
+
dropdown_resources = gr.Dropdown(
|
| 192 |
+
choices=[
|
| 193 |
+
"AI/Machine Learning Engineer",
|
| 194 |
+
"Data Scientist",
|
| 195 |
+
"Cloud Solutions Architect",
|
| 196 |
+
"Cybersecurity Analyst",
|
| 197 |
+
"Statisticians",
|
| 198 |
+
"Biomedical Engineer"
|
| 199 |
+
],
|
| 200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|