mahika123 commited on
Commit
d12d911
·
verified ·
1 Parent(s): 151ce55
Files changed (1) hide show
  1. app.py +12 -10
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.Tabs():
163
- with gr.Tab("ChatBot"):
164
- gr.ChatInterface(
165
- respond,
166
- type="messages",
167
- title="Hi, I'm Path Pilot!",
168
- textbox=gr.Textbox(placeholder="Share your interests and explore more on your career of choice!"),
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")
@@ -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.Textbox(label="Top-Ranked Jobs", interactive=False)
 
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(