llm_integration #12

Merged
Fabel merged 5 commits from llm_integration into develop 2024-10-10 06:11:29 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit d46ac83ca9 - Show all commits

View File

@ -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)