minemaster01 commited on
Commit
c83864e
·
verified ·
1 Parent(s): c4a59c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 "", ""