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,9 +20,9 @@ from langchain.schema.output_parser import StrOutputParser
|
|
20 |
from pinecone import Pinecone
|
21 |
from bs4 import BeautifulSoup
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
background_callback_manager =
|
26 |
|
27 |
from flask import Flask
|
28 |
|
|
|
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, DiskcacheManager
|
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 |
+
import diskcache
|
24 |
+
cache = diskcache.Cache("./cache")
|
25 |
+
background_callback_manager = DiskcacheManager(cache)
|
26 |
|
27 |
from flask import Flask
|
28 |
|