Update app.py
Browse files
app.py
CHANGED
|
@@ -29,12 +29,7 @@ os.environ["LANGCHAIN_ENDPOINT"] = "https://api.langchain.plus"
|
|
| 29 |
os.environ["LANGCHAIN_API_KEY"] = lang_api_key
|
| 30 |
os.environ["LANGCHAIN_PROJECT"] = "Lithuanian_Law_RAG_QA"
|
| 31 |
|
| 32 |
-
|
| 33 |
-
if os.path.exists(path):
|
| 34 |
-
shutil.rmtree(path)
|
| 35 |
-
print(f"Directory {path} removed successfully.")
|
| 36 |
-
else:
|
| 37 |
-
print(f"Directory {path} does not exist.")
|
| 38 |
|
| 39 |
|
| 40 |
|
|
@@ -175,5 +170,5 @@ def create_conversational_rag_chain(retriever):
|
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
-
|
| 179 |
-
|
|
|
|
| 29 |
os.environ["LANGCHAIN_API_KEY"] = lang_api_key
|
| 30 |
os.environ["LANGCHAIN_PROJECT"] = "Lithuanian_Law_RAG_QA"
|
| 31 |
|
| 32 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
|
|
|
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
+
if __name__ == "__main__":
|
| 174 |
+
main()
|