Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
f45277d
1
Parent(s):
eb91615
debug
Browse files
app.py
CHANGED
|
@@ -213,6 +213,8 @@ try:
|
|
| 213 |
wpCollection = client.collections.create_from_dict(class_obj)
|
| 214 |
st.session_state.wpCollection = wpCollection
|
| 215 |
logger.info("#### createWebpageCollection() exited.")
|
|
|
|
|
|
|
| 216 |
|
| 217 |
|
| 218 |
if not client.collections.exists("Chunks"):
|
|
@@ -266,6 +268,10 @@ try:
|
|
| 266 |
wpChunkCollection = client.collections.create_from_dict(class_obj)
|
| 267 |
st.session_state.wpChunkCollection = wpChunkCollection
|
| 268 |
logger.info("#### createChunksCollection() exited.")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
|
| 270 |
|
| 271 |
###########################################################
|
|
|
|
| 213 |
wpCollection = client.collections.create_from_dict(class_obj)
|
| 214 |
st.session_state.wpCollection = wpCollection
|
| 215 |
logger.info("#### createWebpageCollection() exited.")
|
| 216 |
+
else:
|
| 217 |
+
wpCollection = client.get_collection("Documents")
|
| 218 |
|
| 219 |
|
| 220 |
if not client.collections.exists("Chunks"):
|
|
|
|
| 268 |
wpChunkCollection = client.collections.create_from_dict(class_obj)
|
| 269 |
st.session_state.wpChunkCollection = wpChunkCollection
|
| 270 |
logger.info("#### createChunksCollection() exited.")
|
| 271 |
+
else:
|
| 272 |
+
wpChunksCollection = client.get_collection("Chunks")
|
| 273 |
+
|
| 274 |
+
|
| 275 |
|
| 276 |
|
| 277 |
###########################################################
|