Ravi theja K
commited on
Update app.py
Browse files
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
|