π First commit of the bot
Browse files- .gitignore +2 -0
- files/linkedin.pdf +0 -0
- main.py +12 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.venv
|
2 |
+
.env
|
files/linkedin.pdf
ADDED
Binary file (56.7 kB). View file
|
|
main.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from qnabot import QnABot, create_interface
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
|
4 |
+
load_dotenv()
|
5 |
+
|
6 |
+
examples = [
|
7 |
+
["Who is Megaklis?"],
|
8 |
+
["What is Squaredev?"],
|
9 |
+
]
|
10 |
+
|
11 |
+
iface = create_interface(QnABot(directory="./files"), examples=examples)
|
12 |
+
iface.launch()
|