Spaces:
Runtime error
Runtime error
Marc-Antoine Rondeau
commited on
Commit
·
5a55b5b
1
Parent(s):
f9dc69d
Import sorting
Browse files- buster/chatbot.py +1 -2
- buster/formatter/html.py +2 -1
- buster/formatter/markdown.py +1 -0
- buster/formatter/slack.py +1 -0
buster/chatbot.py
CHANGED
@@ -10,10 +10,9 @@ import promptlayer
|
|
10 |
from openai.embeddings_utils import cosine_similarity, get_embedding
|
11 |
|
12 |
from buster.docparser import read_documents
|
13 |
-
from buster.formatter import Formatter,
|
14 |
from buster.formatter.base import Response, Source
|
15 |
|
16 |
-
|
17 |
FORMATTERS = {"text": Formatter, "slack": SlackFormatter, "html": HTMLFormatter, "markdown": MarkdownFormatter}
|
18 |
|
19 |
|
|
|
10 |
from openai.embeddings_utils import cosine_similarity, get_embedding
|
11 |
|
12 |
from buster.docparser import read_documents
|
13 |
+
from buster.formatter import Formatter, HTMLFormatter, MarkdownFormatter, SlackFormatter
|
14 |
from buster.formatter.base import Response, Source
|
15 |
|
|
|
16 |
FORMATTERS = {"text": Formatter, "slack": SlackFormatter, "html": HTMLFormatter, "markdown": MarkdownFormatter}
|
17 |
|
18 |
|
buster/formatter/html.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
-
from dataclasses import dataclass
|
2 |
import html
|
|
|
3 |
from typing import Iterable
|
|
|
4 |
from buster.formatter.base import Formatter, Response, Source
|
5 |
|
6 |
|
|
|
|
|
1 |
import html
|
2 |
+
from dataclasses import dataclass
|
3 |
from typing import Iterable
|
4 |
+
|
5 |
from buster.formatter.base import Formatter, Response, Source
|
6 |
|
7 |
|
buster/formatter/markdown.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable
|
|
|
3 |
from buster.formatter.base import Formatter, Source
|
4 |
|
5 |
|
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable
|
3 |
+
|
4 |
from buster.formatter.base import Formatter, Source
|
5 |
|
6 |
|
buster/formatter/slack.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable
|
|
|
3 |
from buster.formatter.base import Formatter, Source
|
4 |
|
5 |
|
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable
|
3 |
+
|
4 |
from buster.formatter.base import Formatter, Source
|
5 |
|
6 |
|