Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
import datetime
|
3 |
import requests
|
4 |
import textwrap
|
|
|
5 |
from offres_emploi import Api
|
6 |
from offres_emploi.utils import dt_to_str_iso
|
7 |
from dash import Dash, html, dcc, callback, Output, Input, dash_table, State, _dash_renderer, clientside_callback
|
@@ -627,6 +628,9 @@ def API_France_Travail(romeListArray):
|
|
627 |
except:
|
628 |
print("Il n'y a pas d'offres d'emploi.")
|
629 |
|
|
|
|
|
|
|
630 |
results_df = pd.DataFrame(results)
|
631 |
return results_df
|
632 |
|
|
|
2 |
import datetime
|
3 |
import requests
|
4 |
import textwrap
|
5 |
+
import js2py
|
6 |
from offres_emploi import Api
|
7 |
from offres_emploi.utils import dt_to_str_iso
|
8 |
from dash import Dash, html, dcc, callback, Output, Input, dash_table, State, _dash_renderer, clientside_callback
|
|
|
628 |
except:
|
629 |
print("Il n'y a pas d'offres d'emploi.")
|
630 |
|
631 |
+
code = "function f(x) {return document.getElementById('custom-topbar').innerHTML = x;}"
|
632 |
+
res = js2py.eval_js(code)
|
633 |
+
res(results)
|
634 |
results_df = pd.DataFrame(results)
|
635 |
return results_df
|
636 |
|