Spaces:
Runtime error
Runtime error
v0.1.4
Browse files- src/baseInfra/dropbox_handler.py +2 -0
- src/chromaIntf.py +4 -1
src/baseInfra/dropbox_handler.py
CHANGED
@@ -67,6 +67,8 @@ async def backupFile(localFilename):
|
|
67 |
This will also create directory on dropbox if needed
|
68 |
"""
|
69 |
global TOKEN
|
|
|
|
|
70 |
localFilename=normalizeFilename(localFilename)
|
71 |
dropboxFilename=getDropboxFilename(localFilename)
|
72 |
print("backing file ",localFilename," to ",dropboxFilename)
|
|
|
67 |
This will also create directory on dropbox if needed
|
68 |
"""
|
69 |
global TOKEN
|
70 |
+
if not localFilename.startswith(os.environ['DROP_DIR2']):
|
71 |
+
localFilename=os.environ['DROP_DIR2']+localFilename
|
72 |
localFilename=normalizeFilename(localFilename)
|
73 |
dropboxFilename=getDropboxFilename(localFilename)
|
74 |
print("backing file ",localFilename," to ",dropboxFilename)
|
src/chromaIntf.py
CHANGED
@@ -88,7 +88,10 @@ class ChromaIntf():
|
|
88 |
except:
|
89 |
print("setting search args failed")
|
90 |
print("reaching step2")
|
91 |
-
|
|
|
|
|
|
|
92 |
value=[]
|
93 |
excludeMeta=True
|
94 |
print("reaching step3")
|
|
|
88 |
except:
|
89 |
print("setting search args failed")
|
90 |
print("reaching step2")
|
91 |
+
try:
|
92 |
+
retVal=await self.retriever.aget_relevant_documents(query)
|
93 |
+
except Exception as ex:
|
94 |
+
logger.exception("Exception occured:",exc_info=True)
|
95 |
value=[]
|
96 |
excludeMeta=True
|
97 |
print("reaching step3")
|