Ravi theja K
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def getSession():
|
|
18 |
+ f"?warehouse={pars['warehouse']}&role={pars['role']}")
|
19 |
db = SQLDatabase.from_uri(url)
|
20 |
|
21 |
-
|
22 |
llm = HuggingFaceHub(repo_id= "ravithejakandi/Sf-Arctic-Demo-Enu")
|
23 |
chain = create_sql_query_chain(llm, db)
|
24 |
return session, db, chain
|
|
|
18 |
+ f"?warehouse={pars['warehouse']}&role={pars['role']}")
|
19 |
db = SQLDatabase.from_uri(url)
|
20 |
|
21 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
22 |
llm = HuggingFaceHub(repo_id= "ravithejakandi/Sf-Arctic-Demo-Enu")
|
23 |
chain = create_sql_query_chain(llm, db)
|
24 |
return session, db, chain
|