Spaces:
Runtime error
Runtime error
π Bump and release
Browse files
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.
|
|
|
|
|
31 |
|
32 |
```python
|
33 |
from qnabot import QnABot, create_app
|
34 |
|
35 |
-
app = create_app(QnABot("./
|
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 |
|
5 |
setup(
|
6 |
name="qnabot",
|
|
|
1 |
from setuptools import setup, find_packages
|
2 |
|
3 |
+
VERSION = "0.0.5"
|
4 |
|
5 |
setup(
|
6 |
name="qnabot",
|