Skip to content

Commit

Permalink
temporary fixes for 505 and 506
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Jul 22, 2023
1 parent cff0ea5 commit b291ef4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Most recent releases are shown at the top. Each release shows:
- N/A

### fixed:
- N/A
- Temporarily pin to `scikit-learn<1.3` to avoid `eli5` import error (#505)
- Temporarily changed `generative_qa` imports to avoid `OPENAI_API_KEY error (#506)


## 0.37.3 (2023-07-22)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
```python
import os
os.environ['OPENAI_API_KEY'] = 'ENTER YOUR OPENAI API KEY HERE'
from ktrain.text.qa import GenerativeQA
from ktrain.text.qa.generative_qa import GenerativeQA
genqa = GenerativeQA()
genqa.add_doc(text=a_string_containing_text_of_your_document)
print(genqa.query('What is ktrain?'))
Expand Down
2 changes: 1 addition & 1 deletion examples/text/question_answering_with_openai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"metadata": {},
"outputs": [],
"source": [
"from ktrain .text.qa import GenerativeQA\n",
"from ktrain .text.qa.generative_qa import GenerativeQA\n",
"genqa = GenerativeQA()"
]
},
Expand Down
1 change: 0 additions & 1 deletion ktrain/text/qa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .extractive_qa import ExtractiveQABase, AnswerExtractor, SimpleQA
from .generative_qa import GenerativeQA
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
url="https://github.com/amaiya/ktrain",
keywords=["tensorflow", "keras", "deep learning", "machine learning"],
install_requires=[
"scikit-learn",
"scikit-learn<1.3",
"matplotlib >= 3.0.0",
"pandas >= 1.0.1",
"fastprogress >= 0.1.21",
Expand Down

0 comments on commit b291ef4

Please sign in to comment.