switched confidence with result

This commit is contained in:
Falko Victor Habel 2024-10-09 10:55:16 +02:00
parent 16f3bf00a4
commit d46ac83ca9
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ GOOD_WORDS = ["REAL"]
BAD_COLOR = "#ff8080"
GOOD_COLOR = "#80ff8f"
WORDS = BAD_WORDS + GOOD_WORDS
class MainFrameController:
def __init__(self,frame:MainFrame) -> None:
@ -30,7 +32,7 @@ class MainFrameController:
self.frame.output_textbox.configure(state="normal")
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)