Spaces:
Sleeping
Sleeping
Rohil Bansal
commited on
Commit
·
d92decd
1
Parent(s):
5fbf1e9
file paths fixed
Browse files- src/index.py +0 -7
src/index.py
CHANGED
@@ -44,13 +44,6 @@ except Exception as e:
|
|
44 |
print(f"Error setting up Azure OpenAI: {e}")
|
45 |
sys.exit(1)
|
46 |
|
47 |
-
# Set working directory
|
48 |
-
print("Starting Directory: ", os.getcwd())
|
49 |
-
if not os.getcwd().endswith("Ally"):
|
50 |
-
os.chdir("..")
|
51 |
-
sys.path.append(os.getcwd())
|
52 |
-
print("Current Directory: ", os.getcwd())
|
53 |
-
|
54 |
# Function to check if vector store exists
|
55 |
def vector_store_exists(persist_directory):
|
56 |
return os.path.exists(persist_directory) and len(os.listdir(persist_directory)) > 0
|
|
|
44 |
print(f"Error setting up Azure OpenAI: {e}")
|
45 |
sys.exit(1)
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
# Function to check if vector store exists
|
48 |
def vector_store_exists(persist_directory):
|
49 |
return os.path.exists(persist_directory) and len(os.listdir(persist_directory)) > 0
|