Spaces:
Sleeping
Sleeping
minhdang14902
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,7 @@ def load_json_file(filename):
|
|
89 |
filename = './Law_2907.json'
|
90 |
intents = load_json_file(filename)
|
91 |
|
|
|
92 |
def create_df():
|
93 |
df = pd.DataFrame({
|
94 |
'Pattern': [],
|
@@ -98,6 +99,7 @@ def create_df():
|
|
98 |
|
99 |
df = create_df()
|
100 |
|
|
|
101 |
def extract_json_info(json_file, df):
|
102 |
for intent in json_file['intents']:
|
103 |
for pattern in intent['patterns']:
|
|
|
89 |
filename = './Law_2907.json'
|
90 |
intents = load_json_file(filename)
|
91 |
|
92 |
+
@st.cache_data
|
93 |
def create_df():
|
94 |
df = pd.DataFrame({
|
95 |
'Pattern': [],
|
|
|
99 |
|
100 |
df = create_df()
|
101 |
|
102 |
+
@st.cache_data
|
103 |
def extract_json_info(json_file, df):
|
104 |
for intent in json_file['intents']:
|
105 |
for pattern in intent['patterns']:
|