Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ 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
|
8 |
import dash_bootstrap_components as dbc
|
9 |
import plotly.express as px
|
10 |
import plotly.graph_objects as go
|
@@ -20,10 +20,6 @@ from langchain.schema.output_parser import StrOutputParser
|
|
20 |
from pinecone import Pinecone
|
21 |
from bs4 import BeautifulSoup
|
22 |
|
23 |
-
import diskcache
|
24 |
-
cache = diskcache.Cache("./cache")
|
25 |
-
background_callback_manager = DiskcacheManager(cache)
|
26 |
-
|
27 |
from flask import Flask
|
28 |
|
29 |
server = Flask(__name__)
|
@@ -844,8 +840,6 @@ def drawer_demo(n_clicks):
|
|
844 |
Input(component_id='framework-multi-select', component_property='value'),
|
845 |
Input('figEmplois', 'selectedData'),
|
846 |
Input("mantine-provider", "forceColorScheme"),
|
847 |
-
background=True,
|
848 |
-
manager=background_callback_manager,
|
849 |
)
|
850 |
def create_repartition(array_value, selectedData, theme):
|
851 |
if theme == "dark":
|
|
|
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
|
8 |
import dash_bootstrap_components as dbc
|
9 |
import plotly.express as px
|
10 |
import plotly.graph_objects as go
|
|
|
20 |
from pinecone import Pinecone
|
21 |
from bs4 import BeautifulSoup
|
22 |
|
|
|
|
|
|
|
|
|
23 |
from flask import Flask
|
24 |
|
25 |
server = Flask(__name__)
|
|
|
840 |
Input(component_id='framework-multi-select', component_property='value'),
|
841 |
Input('figEmplois', 'selectedData'),
|
842 |
Input("mantine-provider", "forceColorScheme"),
|
|
|
|
|
843 |
)
|
844 |
def create_repartition(array_value, selectedData, theme):
|
845 |
if theme == "dark":
|