Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -159,15 +159,15 @@ def resource_block(career):
|
|
| 159 |
with gr.Blocks(theme=theme, css=custom_css) as chatbot:
|
| 160 |
gr.Image(display_image)
|
| 161 |
|
| 162 |
-
with gr.
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
|
| 172 |
with gr.Tab("Explore Now"): # ✅ Changed title
|
| 173 |
gr.Markdown("### Explore STEM Career Categories")
|
|
@@ -181,9 +181,11 @@ with gr.Blocks(theme=theme, css=custom_css) as chatbot:
|
|
| 181 |
],
|
| 182 |
label="Choose a Category"
|
| 183 |
)
|
| 184 |
-
output_explore = gr.
|
|
|
|
| 185 |
dropdown_explore.change(fn=show_info, inputs=dropdown_explore, outputs=output_explore)
|
| 186 |
|
|
|
|
| 187 |
with gr.Tab("Resources Page"):
|
| 188 |
gr.Markdown("### Career-Specific Educational Resources")
|
| 189 |
dropdown_resources = gr.Dropdown(
|
|
|
|
| 159 |
with gr.Blocks(theme=theme, css=custom_css) as chatbot:
|
| 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")
|
|
|
|
| 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(
|