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