Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def infer_and_log(text_input):
|
|
106 |
tokens = text_input.split()
|
107 |
|
108 |
formatted_output = " ".join(f'<span style="background-color:#1F1F23; color:{color}">{token}</span>' for token, color in zip(tokens, word_colors))
|
109 |
-
return formatted_output
|
110 |
|
111 |
def clear_fields():
|
112 |
return "", ""
|
|
|
106 |
tokens = text_input.split()
|
107 |
|
108 |
formatted_output = " ".join(f'<span style="background-color:#1F1F23; color:{color}">{token}</span>' for token, color in zip(tokens, word_colors))
|
109 |
+
return formatted_output, word_probs
|
110 |
|
111 |
def clear_fields():
|
112 |
return "", ""
|