Update streamlit_app.py
Browse files- streamlit_app.py +7 -2
streamlit_app.py
CHANGED
|
@@ -25,11 +25,16 @@ except KeyError as e:
|
|
| 25 |
|
| 26 |
@st.cache_resource(show_spinner="Loading Local Knowledge Base...")
|
| 27 |
def get_local_kb():
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
local_kb = get_local_kb()
|
| 32 |
-
local_kb.load(recreate=False) # Load the knowledge base into memory
|
| 33 |
# --- Core Logic Functions ---
|
| 34 |
|
| 35 |
def enrich_and_generate_images(video_summary: str) -> str:
|
|
|
|
| 25 |
|
| 26 |
@st.cache_resource(show_spinner="Loading Local Knowledge Base...")
|
| 27 |
def get_local_kb():
|
| 28 |
+
|
| 29 |
+
local_kn_b = load_knowledge_base()
|
| 30 |
+
|
| 31 |
+
if local_kn_b:
|
| 32 |
+
local_kn_b.load(recreate=False)
|
| 33 |
+
return local_kn_b
|
| 34 |
|
| 35 |
|
| 36 |
local_kb = get_local_kb()
|
| 37 |
+
#local_kb.load(recreate=False) # Load the knowledge base into memory
|
| 38 |
# --- Core Logic Functions ---
|
| 39 |
|
| 40 |
def enrich_and_generate_images(video_summary: str) -> str:
|