Zwea Htet commited on
Commit
557e9af
1 Parent(s): 23a229c

fixed some bugs

Browse files
Files changed (2) hide show
  1. models/bloom.py +2 -2
  2. requirements.txt +2 -1
models/bloom.py CHANGED
@@ -67,8 +67,8 @@ def prepare_data(file_path: str):
67
  documents = []
68
  for item in parsed:
69
  document = Document(
70
- item["paragraphText"],
71
- item["_id"]["$oid"],
72
  extra_info={
73
  "chapter": item["chapter"],
74
  "article": item["article"],
 
67
  documents = []
68
  for item in parsed:
69
  document = Document(
70
+ text=item["paragraphText"],
71
+ doc_id=item["_id"]["$oid"],
72
  extra_info={
73
  "chapter": item["chapter"],
74
  "article": item["article"],
requirements.txt CHANGED
@@ -8,4 +8,5 @@ openai
8
  faiss-cpu
9
  python-dotenv
10
  streamlit
11
- huggingface_hub
 
 
8
  faiss-cpu
9
  python-dotenv
10
  streamlit
11
+ huggingface_hub
12
+ xformers