Ravi theja K commited on
Commit
8f2a438
·
verified ·
1 Parent(s): 35dc562

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def getSession():
28
  + f"?warehouse={pars['warehouse']}&role={pars['role']}")
29
  db = SQLDatabase.from_uri(url)
30
 
31
- os.environ["HUGGINGFACEHUB_API_TOKEN"]
32
  llm = HuggingFaceHub(repo_id= "ravithejakandi/Sf-Arctic-Demo-Enu")
33
  chain = create_sql_query_chain(llm, db)
34
  return session, db, chain
 
28
  + f"?warehouse={pars['warehouse']}&role={pars['role']}")
29
  db = SQLDatabase.from_uri(url)
30
 
31
+ os.environ["HUGGINGFACEHUB_API_TOKEN"] ='HUGGINGFACEHUB_API_TOKEN'
32
  llm = HuggingFaceHub(repo_id= "ravithejakandi/Sf-Arctic-Demo-Enu")
33
  chain = create_sql_query_chain(llm, db)
34
  return session, db, chain