samarthagarwal23 commited on
Commit
1644b7d
1 Parent(s): 5a3144d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def cstr_break(s, color='black'):
69
  return "<text style=color:{}>{}<br></text>".format(color, s)
70
 
71
  def print_colored(text, start_idx, end_idx, confidence):
72
- conf_str = 'Confidence: ' + confidence)
73
  a = cstr_break(' '.join(cstr(' '.join([text[:start_idx], cstr_bold(text[start_idx:end_idx], color='red'), text[end_idx:]]), color='black'), conf_str))
74
  #a = colored(text[:start_idx]) + colored(text[start_idx:end_idx], 'red', 'on_yellow') + colored(text[end_idx:])
75
  return a
 
69
  return "<text style=color:{}>{}<br></text>".format(color, s)
70
 
71
  def print_colored(text, start_idx, end_idx, confidence):
72
+ conf_str = 'Confidence: ' + confidence
73
  a = cstr_break(' '.join(cstr(' '.join([text[:start_idx], cstr_bold(text[start_idx:end_idx], color='red'), text[end_idx:]]), color='black'), conf_str))
74
  #a = colored(text[:start_idx]) + colored(text[start_idx:end_idx], 'red', 'on_yellow') + colored(text[end_idx:])
75
  return a