Spaces:
Runtime error
Runtime error
Caitlin Blackmore commited on
Commit ·
62057cc
1
Parent(s): e54baff
add static file
Browse files- main.py +0 -11
- templates/job_neighborhoods.html +0 -0
main.py
CHANGED
|
@@ -76,17 +76,6 @@ def render_job_info(request: Request, jobtitle: str = Form(enum=[x for x in onet
|
|
| 76 |
### job neighborhoods ###
|
| 77 |
@app.get("/explore-job-neighborhoods/", response_class=HTMLResponse)
|
| 78 |
def render_job_neighborhoods(request: Request):
|
| 79 |
-
def format_title(logo, title, subtitle, title_font_size = 28, subtitle_font_size=14):
|
| 80 |
-
logo = f'<a href="/" target="_self">{logo}</a>'
|
| 81 |
-
subtitle = f'<span style="font-size: {subtitle_font_size}px;">{subtitle}</span>'
|
| 82 |
-
title = f'<span style="font-size: {title_font_size}px;">{title}</span>'
|
| 83 |
-
return f'{logo}{title}<br>{subtitle}'
|
| 84 |
-
|
| 85 |
-
fig = px.scatter(coheredat, x = 'longitude', y = 'latitude', color = 'Category', hover_data = ['Category', 'Title'],
|
| 86 |
-
title=format_title("Pathfinder", " Job Neighborhoods: Explore the Map!", "(Generated using Co-here AI's LLM & ONET's Task Statements)"))
|
| 87 |
-
fig['layout'].update(height=1000, width=1500, font=dict(family='Courier New, monospace', color='black'))
|
| 88 |
-
fig.write_html('templates/job_neighborhoods.html')
|
| 89 |
-
|
| 90 |
return templates.TemplateResponse('job_neighborhoods.html', context={'request': request})
|
| 91 |
|
| 92 |
### find my match ###
|
|
|
|
| 76 |
### job neighborhoods ###
|
| 77 |
@app.get("/explore-job-neighborhoods/", response_class=HTMLResponse)
|
| 78 |
def render_job_neighborhoods(request: Request):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
return templates.TemplateResponse('job_neighborhoods.html', context={'request': request})
|
| 80 |
|
| 81 |
### find my match ###
|
templates/job_neighborhoods.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|