Ravi theja K
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
from transformers import AutoTokenizer
|
4 |
-
from snowflake.snowpark import Session
|
5 |
from snowflake.ml.utils.connection_params import SnowflakeLoginOptions
|
6 |
from langchain_community.utilities import SQLDatabase
|
7 |
from langchain.llms import HuggingFaceHub
|
8 |
from langchain.chains import create_sql_query_chain
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
@st.cache_resource(show_spinner="Connecting...")
|
14 |
def getSession():
|
15 |
pars = SnowflakeLoginOptions("test_conn")
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
from transformers import AutoTokenizer
|
|
|
4 |
from snowflake.ml.utils.connection_params import SnowflakeLoginOptions
|
5 |
from langchain_community.utilities import SQLDatabase
|
6 |
from langchain.llms import HuggingFaceHub
|
7 |
from langchain.chains import create_sql_query_chain
|
8 |
|
|
|
|
|
|
|
9 |
@st.cache_resource(show_spinner="Connecting...")
|
10 |
def getSession():
|
11 |
pars = SnowflakeLoginOptions("test_conn")
|