Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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=
|
| 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():
|