momegas commited on
Commit
3e355cf
β€’
1 Parent(s): d07d5ac

πŸš€ Bump and release

Browse files
Files changed (2) hide show
  1. README.md +4 -2
  2. setup.py +1 -1
README.md CHANGED
@@ -27,12 +27,14 @@ bot.save_index("index.pickle")
27
  bot = QnABot(directory="./mydata", index="index.pickle")
28
  ```
29
 
30
- You can also create a FastAPI app that will expose the bot as an API. You should then be able to visit `http://localhost:8000/docs` to see the API documentation.
 
 
31
 
32
  ```python
33
  from qnabot import QnABot, create_app
34
 
35
- app = create_app(QnABot("./examples/files"))
36
  ```
37
 
38
  ### Features
 
27
  bot = QnABot(directory="./mydata", index="index.pickle")
28
  ```
29
 
30
+ You can also create a FastAPI app that will expose the bot as an API.
31
+ Just run `uvicorn main:app --reload` to run the API locally.
32
+ You should then be able to visit `http://localhost:8000/docs` to see the API documentation.
33
 
34
  ```python
35
  from qnabot import QnABot, create_app
36
 
37
+ app = create_app(QnABot("./mydata"))
38
  ```
39
 
40
  ### Features
setup.py CHANGED
@@ -1,6 +1,6 @@
1
  from setuptools import setup, find_packages
2
 
3
- VERSION = "0.0.4"
4
 
5
  setup(
6
  name="qnabot",
 
1
  from setuptools import setup, find_packages
2
 
3
+ VERSION = "0.0.5"
4
 
5
  setup(
6
  name="qnabot",