Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
14 |
embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
15 |
db = FAISS.load_local("faiss_index_lawcounsel", embedding_model, allow_dangerous_deserialization=True)
|
16 |
|
17 |
-
# Load CUAD
|
18 |
-
|
19 |
-
|
20 |
|
21 |
# Model setup flags
|
22 |
USE_LLAMA = os.environ.get("USE_LLAMA", "false").lower() == "true"
|
|
|
14 |
embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
15 |
db = FAISS.load_local("faiss_index_lawcounsel", embedding_model, allow_dangerous_deserialization=True)
|
16 |
|
17 |
+
# Load CUAD from hf itself
|
18 |
+
from datasets import load_dataset
|
19 |
+
cuad_data = load_dataset("cuad")
|
20 |
|
21 |
# Model setup flags
|
22 |
USE_LLAMA = os.environ.get("USE_LLAMA", "false").lower() == "true"
|