Skip to content

Commit 883bde0

Browse files
modified dependencies
1 parent c03af0c commit 883bde0

File tree

4 files changed

+193
-20
lines changed

4 files changed

+193
-20
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
secrets.toml
22
.streamlit
33
.env
4-
venv/
4+
venv/
5+
.DS_Store

requirements.txt

+188-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,189 @@
1-
streamlit>=1.12.0
2-
pandas>=1.3.0
3-
matplotlib>=3.5.0
4-
SQLAlchemy>=1.4.0
5-
snowflake-connector-python>=2.7.0
6-
supabase
7-
python-dotenv
8-
pydantic
9-
watchdog
1+
# this requirements.txt file is been created using
2+
# pip freeze > requirements.txt command in custom python virtual environment
103

11-
# LangChain and related community packages
12-
langchain>=0.0.148
13-
langchain-community>=0.0.148
14-
langchain-google-genai>=0.0.148
15-
16-
# Langgraph for agent functionality
17-
langgraph>=0.0.148
4+
aiofiles==24.1.0
5+
aiohappyeyeballs==2.4.4
6+
aiohttp==3.11.11
7+
aiosignal==1.3.2
8+
altair==5.5.0
9+
annotated-types==0.7.0
10+
anyio==4.8.0
11+
appnope==0.1.4
12+
asn1crypto==1.5.1
13+
asttokens==3.0.0
14+
attrs==25.1.0
15+
backoff==2.2.1
16+
beautifulsoup4==4.13.1
17+
blinker==1.9.0
18+
cachetools==5.5.1
19+
certifi==2025.1.31
20+
cffi==1.17.1
21+
chardet==5.2.0
22+
charset-normalizer==3.4.1
23+
click==8.1.8
24+
cloudpickle==2.2.1
25+
comm==0.2.2
26+
contourpy==1.3.1
27+
cryptography==44.0.0
28+
cycler==0.12.1
29+
dataclasses-json==0.6.7
30+
debugpy==1.8.12
31+
decorator==5.1.1
32+
deprecation==2.1.0
33+
distro==1.9.0
34+
duckduckgo_search==6.3.0
35+
emoji==2.14.1
36+
eval_type_backport==0.2.2
37+
executing==2.2.0
38+
Faker==35.2.0
39+
filelock==3.17.0
40+
filetype==1.2.0
41+
fonttools==4.56.0
42+
frozenlist==1.5.0
43+
gitdb==4.0.12
44+
GitPython==3.1.44
45+
google-ai-generativelanguage==0.6.15
46+
google-api-core==2.24.1
47+
google-api-python-client==2.160.0
48+
google-auth==2.38.0
49+
google-auth-httplib2==0.2.0
50+
google-generativeai==0.8.4
51+
googleapis-common-protos==1.67.0rc1
52+
gotrue==2.11.3
53+
grpcio==1.70.0
54+
grpcio-status==1.70.0
55+
h11==0.14.0
56+
h2==4.2.0
57+
hpack==4.1.0
58+
html5lib==1.1
59+
httpcore==1.0.7
60+
httplib2==0.22.0
61+
httpx==0.27.2
62+
hyperframe==6.1.0
63+
idna==3.10
64+
ipykernel==6.29.5
65+
ipython==8.32.0
66+
jedi==0.19.2
67+
Jinja2==3.1.5
68+
jiter==0.8.2
69+
joblib==1.4.2
70+
jsonpatch==1.33
71+
jsonpath-python==1.0.6
72+
jsonpointer==3.0.0
73+
jsonschema==4.23.0
74+
jsonschema-specifications==2024.10.1
75+
jupyter_client==8.6.3
76+
jupyter_core==5.7.2
77+
kiwisolver==1.4.8
78+
langchain==0.3.18
79+
langchain-community==0.3.2
80+
langchain-core==0.3.34
81+
langchain-google-genai==2.0.9
82+
langchain-openai==0.3.3
83+
langchain-text-splitters==0.3.6
84+
langdetect==1.0.9
85+
langgraph==0.2.38
86+
langgraph-checkpoint==2.0.10
87+
langgraph-sdk==0.1.51
88+
langsmith==0.1.147
89+
lxml==5.3.0
90+
markdown-it-py==3.0.0
91+
MarkupSafe==3.0.2
92+
marshmallow==3.26.1
93+
matplotlib==3.10.0
94+
matplotlib-inline==0.1.7
95+
mdurl==0.1.2
96+
msgpack==1.1.0
97+
multidict==6.1.0
98+
mypy-extensions==1.0.0
99+
narwhals==1.25.0
100+
nest-asyncio==1.6.0
101+
nltk==3.9.1
102+
numpy==1.26.4
103+
olefile==0.47
104+
openai==1.61.1
105+
orjson==3.10.15
106+
packaging==24.2
107+
pandas==2.2.3
108+
parso==0.8.4
109+
pexpect==4.9.0
110+
pillow==10.4.0
111+
platformdirs==4.3.6
112+
postgrest==0.16.11
113+
primp==0.11.0
114+
prompt_toolkit==3.0.50
115+
propcache==0.2.1
116+
proto-plus==1.26.0
117+
protobuf==5.29.3
118+
psutil==6.1.1
119+
psycopg2==2.9.10
120+
ptyprocess==0.7.0
121+
pure_eval==0.2.3
122+
pyarrow==19.0.0
123+
pyasn1==0.6.1
124+
pyasn1_modules==0.4.1
125+
pycparser==2.22
126+
pydantic==2.9.2
127+
pydantic-settings==2.7.1
128+
pydantic_core==2.23.4
129+
pydeck==0.9.1
130+
Pygments==2.19.1
131+
PyJWT==2.10.1
132+
pyOpenSSL==24.3.0
133+
pyparsing==3.2.1
134+
pypdf==5.2.0
135+
python-dateutil==2.9.0.post0
136+
python-dotenv==1.0.1
137+
python-iso639==2025.1.28
138+
python-magic==0.4.27
139+
python-oxmsg==0.0.2
140+
pytz==2025.1
141+
PyYAML==6.0.2
142+
pyzmq==26.2.1
143+
RapidFuzz==3.12.1
144+
realtime==1.0.6
145+
referencing==0.36.2
146+
regex==2024.11.6
147+
requests==2.32.3
148+
requests-toolbelt==1.0.0
149+
rich==13.9.4
150+
rpds-py==0.22.3
151+
rsa==4.9
152+
setuptools==75.8.0
153+
six==1.17.0
154+
smmap==5.0.2
155+
sniffio==1.3.1
156+
snowflake-connector-python==3.13.2
157+
snowflake-snowpark-python==1.27.0
158+
snowflake-sqlalchemy==1.7.3
159+
sortedcontainers==2.4.0
160+
soupsieve==2.6
161+
SQLAlchemy==2.0.37
162+
stack-data==0.6.3
163+
storage3==0.7.7
164+
streamlit==1.33.0
165+
StrEnum==0.4.15
166+
supabase==2.4.1
167+
supafunc==0.4.7
168+
tenacity==8.5.0
169+
tiktoken==0.8.0
170+
toml==0.10.2
171+
tomlkit==0.13.2
172+
tornado==6.4.2
173+
tqdm==4.67.1
174+
traitlets==5.14.3
175+
typing-inspect==0.9.0
176+
typing_extensions==4.12.2
177+
tzdata==2025.1
178+
tzlocal==5.2
179+
unstructured==0.16.17
180+
unstructured-client==0.28.1
181+
uritemplate==4.1.1
182+
urllib3==2.3.0
183+
wcwidth==0.2.13
184+
webencodings==0.5.1
185+
websocket-client==1.7.0
186+
websockets==12.0
187+
wheel==0.45.1
188+
wrapt==1.17.2
189+
yarl==1.18.3
-170 Bytes
Binary file not shown.

utils/snowchat_ui.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# utils/snowchat_ui.py
22
import streamlit as st
3-
from langchain.callbacks.base import BaseCallbackHandler
43

54
def get_model_url(model: str) -> str:
65
if model == "Google Gemini":
@@ -16,9 +15,10 @@ def message_func(message: str, is_user: bool = False, is_df: bool = False, model
1615
model_url = get_model_url(model)
1716
st.markdown(f"**Assistant ({model_url}):** {message}")
1817

19-
class StreamlitUICallbackHandler(BaseCallbackHandler):
18+
# Instead of subclassing BaseCallbackHandler (which may be a Pydantic model),
19+
# we define our callback handler as a plain class.
20+
class StreamlitUICallbackHandler:
2021
def __init__(self, model: str):
21-
super().__init__()
2222
self.model = model
2323
self.final_message = ""
2424

0 commit comments

Comments
 (0)