jason137 commited on
Commit
749a38e
·
1 Parent(s): a125cf1

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +3 -2
script.py CHANGED
@@ -15,6 +15,9 @@ QUERIES = ("How many albums are there?"
15
  , "What artist has the album with the 2nd most tracks?"
16
  )
17
 
 
 
 
18
  def _get_metadata():
19
 
20
  con = sqlite3.connect("Chinook.db")
@@ -32,8 +35,6 @@ def _get_metadata():
32
  con.close()
33
  return pd.DataFrame({'table': ts, 'columns': cs})
34
 
35
- ]st.title(emoji.emojize(":robot_face: Text to SQL via LangChain :robot_face:"))
36
- st.subheader("table metadata")
37
  st.write(_get_metadata())
38
 
39
  llm = OpenAI(temperature=0.0, openai_api_key=OPENAI_API_KEY)
 
15
  , "What artist has the album with the 2nd most tracks?"
16
  )
17
 
18
+ st.title(emoji.emojize(":robot_face: Text to SQL via LangChain :robot_face:"))
19
+ st.subheader("table metadata")
20
+
21
  def _get_metadata():
22
 
23
  con = sqlite3.connect("Chinook.db")
 
35
  con.close()
36
  return pd.DataFrame({'table': ts, 'columns': cs})
37
 
 
 
38
  st.write(_get_metadata())
39
 
40
  llm = OpenAI(temperature=0.0, openai_api_key=OPENAI_API_KEY)