samarthagarwal23 commited on
Commit
8de99fc
1 Parent(s): 0418be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -102,15 +102,13 @@ def final_qa_pipeline(file, query, model_nm):
102
  return ("No match","No match")
103
 
104
  examples = [
105
- [os.path.abspath("dbs-annual-report-2020.pdf"), "how many times has DBS won Best bank in the world ?"],
106
- [os.path.abspath("dbs-annual-report-2020.pdf"), "what is PURE ?"],
107
- [os.path.abspath("dbs-annual-report-2020.pdf"), "how much dividend was paid to shareholders ?"],
108
- [os.path.abspath("dbs-annual-report-2020.pdf"), "what are the key risks ?"],
109
- [os.path.abspath("dbs-annual-report-2020.pdf"), "what is the sustainability focus ?"],
110
- [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "how much are the outstanding shares ?"],
111
- [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "what is competitors strategy ?"],
112
- [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "who is the chief executive officer ?"],
113
- [os.path.abspath("NASDAQ_MSFT_2020.pdf"), "How much is the guided revenue for next quarter?"],
114
  ]
115
 
116
  iface = gr.Interface(
 
102
  return ("No match","No match")
103
 
104
  examples = [
105
+ [os.path.abspath("dbs-annual-report-2020.pdf"), "how many times has DBS won Best bank in the world ?","minilm-uncased-squad2"],
106
+ [os.path.abspath("dbs-annual-report-2020.pdf"), "how much dividend was paid to shareholders ?","minilm-uncased-squad2"],
107
+ [os.path.abspath("dbs-annual-report-2020.pdf"), "what is the sustainability focus ?","minilm-uncased-squad2"],
108
+ [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "how much are the outstanding shares ?","minilm-uncased-squad2"],
109
+ [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "what is competitors strategy ?","minilm-uncased-squad2"],
110
+ [os.path.abspath("NASDAQ_AAPL_2020.pdf"), "who is the chief executive officer ?","minilm-uncased-squad2"],
111
+ [os.path.abspath("NASDAQ_MSFT_2020.pdf"), "How much is the guided revenue for next quarter?","minilm-uncased-squad2"],
 
 
112
  ]
113
 
114
  iface = gr.Interface(