Spaces:
Sleeping
Sleeping
Ravi theja K
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,21 @@
|
|
1 |
import streamlit as st
|
2 |
import replicate
|
3 |
import os
|
|
|
|
|
|
|
4 |
from transformers import AutoTokenizer
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Set assistant icon to Snowflake logo
|
7 |
icons = {"assistant": "./Snowflake_Logomark_blue.svg", "user": "⛷️"}
|
8 |
|
|
|
1 |
import streamlit as st
|
2 |
import replicate
|
3 |
import os
|
4 |
+
import snowflake.snowpark.functions
|
5 |
+
from snowflake.snowpark import Session
|
6 |
+
from snowflake.snowpark.functions import col
|
7 |
from transformers import AutoTokenizer
|
8 |
+
|
9 |
+
|
10 |
+
connection_parameters= {"account" = "ap20346.ap-south-1"
|
11 |
+
"user" = "Vassist"
|
12 |
+
"password" = "Vassist@123"
|
13 |
+
"warehouse" = "COMPUTE_WH"
|
14 |
+
"database" = "SNOWFLAKE_SAMPLE_DATA"
|
15 |
+
"schema" = "TPCH_SF1"}
|
16 |
+
|
17 |
+
test_Session = Session.builder.configs(connection_parameters).create()
|
18 |
+
|
19 |
# Set assistant icon to Snowflake logo
|
20 |
icons = {"assistant": "./Snowflake_Logomark_blue.svg", "user": "⛷️"}
|
21 |
|