rstallman commited on
Commit
c738bff
·
1 Parent(s): e14097e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -4,7 +4,7 @@ import sqlite3
4
  from PIL import Image
5
  import time
6
 
7
- openai.api_key = "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"
8
  # Database Connection
9
 
10
  conn = sqlite3.connect('bank.db')
@@ -13,6 +13,8 @@ c = conn.cursor()
13
 
14
  def policyBot():
15
  st.title("Welcome to OneInsurance ChatBot")
 
 
16
 
17
  policy_doc_link = "https://www.hdfcergo.com/docs/default-source/downloads/policy-wordings/health/arogya-sanjeevani---a5-size---pw---hehi.pdf"
18
  st.write("Ask any question about the Health Insurance you selected")
@@ -28,14 +30,14 @@ def policyBot():
28
  c.execute('SELECT Policy_Name FROM BANK WHERE Bank_Name= "{}"'.format(selected_option_2))
29
  options_3 = c.fetchall()
30
 
31
- # st.write(options_3)
32
  my_options = []
33
  for row in options_3:
34
  my_options.append(row[0])
35
 
36
  st.subheader("Select the Policy Name")
37
  selected_option_3 = st.selectbox("Please enter your option:", my_options)
38
-
39
  c.execute('SELECT Policy_doc FROM BANK WHERE Policy_Name = "{}"'.format(selected_option_3))
40
  policy_doc_link = c.fetchone()
41
 
@@ -62,6 +64,5 @@ def policyBot():
62
  st.write(f"Answer: {user_answer}")
63
 
64
 
65
-
66
  if __name__ == '__main__':
67
  policyBot()
 
4
  from PIL import Image
5
  import time
6
 
7
+ openai.api_key = "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"
8
  # Database Connection
9
 
10
  conn = sqlite3.connect('bank.db')
 
13
 
14
  def policyBot():
15
  st.title("Welcome to OneInsurance ChatBot")
16
+ st.subheader("Westminster AI: Legal Innovations in Insurance")
17
+ st.write("Subtitle: Exploring Cutting-edge AI Solutions in the Insurance Industry")
18
 
19
  policy_doc_link = "https://www.hdfcergo.com/docs/default-source/downloads/policy-wordings/health/arogya-sanjeevani---a5-size---pw---hehi.pdf"
20
  st.write("Ask any question about the Health Insurance you selected")
 
30
  c.execute('SELECT Policy_Name FROM BANK WHERE Bank_Name= "{}"'.format(selected_option_2))
31
  options_3 = c.fetchall()
32
 
33
+ # st.write(options_3)
34
  my_options = []
35
  for row in options_3:
36
  my_options.append(row[0])
37
 
38
  st.subheader("Select the Policy Name")
39
  selected_option_3 = st.selectbox("Please enter your option:", my_options)
40
+
41
  c.execute('SELECT Policy_doc FROM BANK WHERE Policy_Name = "{}"'.format(selected_option_3))
42
  policy_doc_link = c.fetchone()
43
 
 
64
  st.write(f"Answer: {user_answer}")
65
 
66
 
 
67
  if __name__ == '__main__':
68
  policyBot()