switched confidence with result
This commit is contained in:
parent
16f3bf00a4
commit
d46ac83ca9
|
@ -9,6 +9,8 @@ GOOD_WORDS = ["REAL"]
|
||||||
BAD_COLOR = "#ff8080"
|
BAD_COLOR = "#ff8080"
|
||||||
GOOD_COLOR = "#80ff8f"
|
GOOD_COLOR = "#80ff8f"
|
||||||
WORDS = BAD_WORDS + GOOD_WORDS
|
WORDS = BAD_WORDS + GOOD_WORDS
|
||||||
|
|
||||||
|
|
||||||
class MainFrameController:
|
class MainFrameController:
|
||||||
|
|
||||||
def __init__(self,frame:MainFrame) -> None:
|
def __init__(self,frame:MainFrame) -> None:
|
||||||
|
@ -30,7 +32,7 @@ class MainFrameController:
|
||||||
self.frame.output_textbox.configure(state="normal")
|
self.frame.output_textbox.configure(state="normal")
|
||||||
self.frame.output_textbox.delete("0.0", "end")
|
self.frame.output_textbox.delete("0.0", "end")
|
||||||
|
|
||||||
response_stream = self.rater.get_response(text_data.text, text_data.confidence, text_data.result)
|
response_stream = self.rater.get_response(text_data.text, text_data.result, f"{text_data.confidence * 100:.2f}")
|
||||||
|
|
||||||
highlight_buffer = deque(maxlen=5)
|
highlight_buffer = deque(maxlen=5)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue