Shamima commited on
Commit
d138e01
·
1 Parent(s): 5d32a39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def predict(ques):
22
  idx = np.argmax([np.mean(arr) for arr in scores])
23
  return answers[idx]
24
 
25
- examples = ['What is the date of his death?', 'Did Einstein have siblings?', 'Who was his wife?', 'What was Einstein\'s father's name?', 'At what institutions did he study?']
26
  inputs = gr.Textbox(label='query', examples=examples)
27
  outputs = gr.Textbox(label='Answers')
28
  title = "Similar faq"
 
22
  idx = np.argmax([np.mean(arr) for arr in scores])
23
  return answers[idx]
24
 
25
+ examples = ['What is the date of his death?', 'Did Einstein have siblings?', 'Who was his wife?', 'What was Einstein\'s father\'s name?', 'At what institutions did he study?']
26
  inputs = gr.Textbox(label='query', examples=examples)
27
  outputs = gr.Textbox(label='Answers')
28
  title = "Similar faq"