Lbasara commited on
Commit
1d856b6
·
verified ·
1 Parent(s): bb5e1e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ vicf = Vicinity.from_vectors_and_items(
67
  )
68
 
69
  query=pn.widgets.TextInput(name="Rechercher une compétence")
70
- proximax_emploi=0.68
71
 
72
 
73
  score=pn.indicators.Number(name="Score d'adéquation", value=2, visible=False,
@@ -98,7 +98,7 @@ def carte(col):
98
  m=gdet.explore(column="total", tooltip=["canton", "compétence", "total"],
99
  cmap="viridis", vmax=10, tiles="CartoDB positron")
100
 
101
- res_form = [nom for (nom, dist) in vicf.query(test_emb, k=200)[0] if dist<proximax]
102
  dft=pd.DataFrame(res_form, columns=[certcol]).merge(dfform).drop_duplicates(subset=["latitude", "longitude"])
103
 
104
  for irow, row in dft.iterrows():
 
67
  )
68
 
69
  query=pn.widgets.TextInput(name="Rechercher une compétence")
70
+ proximax=0.68
71
 
72
 
73
  score=pn.indicators.Number(name="Score d'adéquation", value=2, visible=False,
 
98
  m=gdet.explore(column="total", tooltip=["canton", "compétence", "total"],
99
  cmap="viridis", vmax=10, tiles="CartoDB positron")
100
 
101
+ res_form = [nom for (nom, dist) in vicf.query(test_emb, k=50)[0] if dist<proximax]
102
  dft=pd.DataFrame(res_form, columns=[certcol]).merge(dfform).drop_duplicates(subset=["latitude", "longitude"])
103
 
104
  for irow, row in dft.iterrows():