Shamima commited on
Commit
6ed3096
·
1 Parent(s): d138e01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ def predict(ques):
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"
29
  description = "Retreive answers of similar queries sing sentence transformers"
30
- gr.Interface(fn = predict, inputs = inputs, outputs = outputs, title = title, description = description).launch()
 
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')
27
  outputs = gr.Textbox(label='Answers')
28
  title = "Similar faq"
29
  description = "Retreive answers of similar queries sing sentence transformers"
30
+ gr.Interface(fn = predict, inputs = inputs, , examples=examples, outputs = outputs, title = title, description = description).launch()