samarthagarwal23 commited on
Commit
8af8a15
1 Parent(s): 1644b7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ def cstr_break(s, color='black'):
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
76
 
@@ -112,6 +112,6 @@ iface = gr.Interface(
112
  outputs = [gr.outputs.HTML(label="Predicted answer"), gr.outputs.Textbox(label="Confidence") ],
113
  examples=examples,
114
  title = "Question Answering on company annual reports",
115
- description = "Simply upload any annual report pdf you are interested in and ask model a question OR load an example from below."
116
  )
117
  iface.launch()
 
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
76
 
 
112
  outputs = [gr.outputs.HTML(label="Predicted answer"), gr.outputs.Textbox(label="Confidence") ],
113
  examples=examples,
114
  title = "Question Answering on company annual reports",
115
+ description = "Navigate long annual reports by using Machine learning to answer your questions. \nSimply upload any annual report pdf you are interested in and ask model a question OR load an example from below."
116
  )
117
  iface.launch()