Spaces:
Runtime error
Runtime error
Marc-Antoine Rondeau
commited on
Commit
·
e29a739
1
Parent(s):
49e678e
Dealing with black being annoying.
Browse files- buster/formatter/base.py +1 -1
buster/formatter/base.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable, NamedTuple
|
3 |
|
|
|
4 |
# Should be from the `documents` module.
|
5 |
class Source(NamedTuple):
|
6 |
name: str
|
@@ -20,7 +21,6 @@ class Response:
|
|
20 |
|
21 |
@dataclass
|
22 |
class Formatter:
|
23 |
-
|
24 |
source_template: str = "{source.name} (relevance: {source.question_similarity:2.3f})"
|
25 |
error_msg_template: str = "Something went wrong: {response.error_msg}"
|
26 |
error_fallback_template: str = "Something went very wrong."
|
|
|
1 |
from dataclasses import dataclass
|
2 |
from typing import Iterable, NamedTuple
|
3 |
|
4 |
+
|
5 |
# Should be from the `documents` module.
|
6 |
class Source(NamedTuple):
|
7 |
name: str
|
|
|
21 |
|
22 |
@dataclass
|
23 |
class Formatter:
|
|
|
24 |
source_template: str = "{source.name} (relevance: {source.question_similarity:2.3f})"
|
25 |
error_msg_template: str = "Something went wrong: {response.error_msg}"
|
26 |
error_fallback_template: str = "Something went very wrong."
|