Spaces:
Running
Running
Johnny Lee
commited on
Commit
·
5aca357
1
Parent(s):
fd1ab9f
bump deps and fix
Browse files- app.py +3 -2
- requirements.txt +26 -14
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import uuid
|
|
| 10 |
import threading
|
| 11 |
|
| 12 |
import pytz
|
| 13 |
-
from pydantic import BaseModel, Field
|
| 14 |
import gspread
|
| 15 |
|
| 16 |
from copy import deepcopy
|
|
@@ -28,7 +28,8 @@ from langchain.callbacks.tracers.run_collector import RunCollectorCallbackHandle
|
|
| 28 |
from langchain.callbacks.tracers.langchain import wait_for_all_tracers
|
| 29 |
from langchain.chains import ConversationChain
|
| 30 |
from langsmith import Client
|
| 31 |
-
from
|
|
|
|
| 32 |
from langchain.memory import ConversationTokenBufferMemory
|
| 33 |
from langchain.prompts.chat import (
|
| 34 |
ChatPromptTemplate,
|
|
|
|
| 10 |
import threading
|
| 11 |
|
| 12 |
import pytz
|
| 13 |
+
from pydantic.v1 import BaseModel, Field
|
| 14 |
import gspread
|
| 15 |
|
| 16 |
from copy import deepcopy
|
|
|
|
| 28 |
from langchain.callbacks.tracers.langchain import wait_for_all_tracers
|
| 29 |
from langchain.chains import ConversationChain
|
| 30 |
from langsmith import Client
|
| 31 |
+
from langchain_community.chat_models import ChatAnthropic
|
| 32 |
+
from langchain_openai import ChatOpenAI
|
| 33 |
from langchain.memory import ConversationTokenBufferMemory
|
| 34 |
from langchain.prompts.chat import (
|
| 35 |
ChatPromptTemplate,
|
requirements.txt
CHANGED
|
@@ -2,7 +2,8 @@ aiofiles==23.2.1
|
|
| 2 |
aiohttp==3.9.1
|
| 3 |
aiosignal==1.3.1
|
| 4 |
altair==5.2.0
|
| 5 |
-
|
|
|
|
| 6 |
anyio==4.2.0
|
| 7 |
astroid==3.0.2
|
| 8 |
async-timeout==4.0.3
|
|
@@ -25,9 +26,9 @@ frozenlist==1.4.1
|
|
| 25 |
fsspec==2023.12.2
|
| 26 |
google-auth==2.25.2
|
| 27 |
google-auth-oauthlib==1.2.0
|
| 28 |
-
gradio==
|
| 29 |
-
gradio_client==0.
|
| 30 |
-
gspread==
|
| 31 |
h11==0.14.0
|
| 32 |
httpcore==1.0.2
|
| 33 |
httpx==0.26.0
|
|
@@ -36,59 +37,70 @@ idna==3.6
|
|
| 36 |
importlib-resources==6.1.1
|
| 37 |
isort==5.13.2
|
| 38 |
Jinja2==3.1.2
|
|
|
|
| 39 |
jsonpatch==1.33
|
| 40 |
jsonpointer==2.4
|
| 41 |
jsonschema==4.20.0
|
| 42 |
jsonschema-specifications==2023.12.1
|
| 43 |
kiwisolver==1.4.5
|
| 44 |
-
langchain==0.
|
| 45 |
-
langchain-community==0.
|
| 46 |
-
langchain-core==0.
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
MarkupSafe==2.1.3
|
| 49 |
marshmallow==3.20.1
|
| 50 |
matplotlib==3.8.2
|
| 51 |
mccabe==0.7.0
|
|
|
|
| 52 |
multidict==6.0.4
|
| 53 |
mypy==1.8.0
|
| 54 |
mypy-extensions==1.0.0
|
| 55 |
numpy==1.26.3
|
| 56 |
oauthlib==3.2.2
|
| 57 |
-
openai==1.
|
| 58 |
-
orjson==3.
|
| 59 |
packaging==23.2
|
| 60 |
pandas==2.1.4
|
| 61 |
pillow==10.2.0
|
| 62 |
platformdirs==4.1.0
|
| 63 |
pyasn1==0.5.1
|
| 64 |
pyasn1-modules==0.3.0
|
| 65 |
-
pydantic==
|
|
|
|
| 66 |
pydub==0.25.1
|
|
|
|
| 67 |
pylint==3.0.3
|
| 68 |
pyparsing==3.1.1
|
| 69 |
python-dateutil==2.8.2
|
| 70 |
python-dotenv==1.0.0
|
| 71 |
-
python-multipart==0.0.
|
| 72 |
pytz==2023.3.post1
|
| 73 |
PyYAML==6.0.1
|
| 74 |
referencing==0.32.0
|
| 75 |
regex==2023.12.25
|
| 76 |
requests==2.31.0
|
| 77 |
requests-oauthlib==1.3.1
|
|
|
|
| 78 |
rpds-py==0.16.2
|
| 79 |
rsa==4.9
|
|
|
|
| 80 |
semantic-version==2.10.0
|
|
|
|
| 81 |
six==1.16.0
|
| 82 |
sniffio==1.3.0
|
| 83 |
SQLAlchemy==2.0.25
|
| 84 |
starlette==0.32.0.post1
|
| 85 |
tenacity==8.2.3
|
| 86 |
-
tiktoken==0.
|
| 87 |
tokenizers==0.15.0
|
| 88 |
tomli==2.0.1
|
| 89 |
-
tomlkit==0.12.
|
| 90 |
toolz==0.12.0
|
| 91 |
tqdm==4.66.1
|
|
|
|
| 92 |
typing-inspect==0.9.0
|
| 93 |
typing_extensions==4.9.0
|
| 94 |
tzdata==2023.4
|
|
|
|
| 2 |
aiohttp==3.9.1
|
| 3 |
aiosignal==1.3.1
|
| 4 |
altair==5.2.0
|
| 5 |
+
annotated-types==0.7.0
|
| 6 |
+
anthropic==0.30.0
|
| 7 |
anyio==4.2.0
|
| 8 |
astroid==3.0.2
|
| 9 |
async-timeout==4.0.3
|
|
|
|
| 26 |
fsspec==2023.12.2
|
| 27 |
google-auth==2.25.2
|
| 28 |
google-auth-oauthlib==1.2.0
|
| 29 |
+
gradio==4.37.2
|
| 30 |
+
gradio_client==1.0.2
|
| 31 |
+
gspread==6.1.2
|
| 32 |
h11==0.14.0
|
| 33 |
httpcore==1.0.2
|
| 34 |
httpx==0.26.0
|
|
|
|
| 37 |
importlib-resources==6.1.1
|
| 38 |
isort==5.13.2
|
| 39 |
Jinja2==3.1.2
|
| 40 |
+
jiter==0.5.0
|
| 41 |
jsonpatch==1.33
|
| 42 |
jsonpointer==2.4
|
| 43 |
jsonschema==4.20.0
|
| 44 |
jsonschema-specifications==2023.12.1
|
| 45 |
kiwisolver==1.4.5
|
| 46 |
+
langchain==0.2.6
|
| 47 |
+
langchain-community==0.2.6
|
| 48 |
+
langchain-core==0.2.10
|
| 49 |
+
langchain-openai==0.1.13
|
| 50 |
+
langchain-text-splitters==0.2.2
|
| 51 |
+
langsmith==0.1.82
|
| 52 |
+
markdown-it-py==3.0.0
|
| 53 |
MarkupSafe==2.1.3
|
| 54 |
marshmallow==3.20.1
|
| 55 |
matplotlib==3.8.2
|
| 56 |
mccabe==0.7.0
|
| 57 |
+
mdurl==0.1.2
|
| 58 |
multidict==6.0.4
|
| 59 |
mypy==1.8.0
|
| 60 |
mypy-extensions==1.0.0
|
| 61 |
numpy==1.26.3
|
| 62 |
oauthlib==3.2.2
|
| 63 |
+
openai==1.35.7
|
| 64 |
+
orjson==3.10.5
|
| 65 |
packaging==23.2
|
| 66 |
pandas==2.1.4
|
| 67 |
pillow==10.2.0
|
| 68 |
platformdirs==4.1.0
|
| 69 |
pyasn1==0.5.1
|
| 70 |
pyasn1-modules==0.3.0
|
| 71 |
+
pydantic==2.7.4
|
| 72 |
+
pydantic_core==2.18.4
|
| 73 |
pydub==0.25.1
|
| 74 |
+
Pygments==2.18.0
|
| 75 |
pylint==3.0.3
|
| 76 |
pyparsing==3.1.1
|
| 77 |
python-dateutil==2.8.2
|
| 78 |
python-dotenv==1.0.0
|
| 79 |
+
python-multipart==0.0.9
|
| 80 |
pytz==2023.3.post1
|
| 81 |
PyYAML==6.0.1
|
| 82 |
referencing==0.32.0
|
| 83 |
regex==2023.12.25
|
| 84 |
requests==2.31.0
|
| 85 |
requests-oauthlib==1.3.1
|
| 86 |
+
rich==13.7.1
|
| 87 |
rpds-py==0.16.2
|
| 88 |
rsa==4.9
|
| 89 |
+
ruff==0.5.0
|
| 90 |
semantic-version==2.10.0
|
| 91 |
+
shellingham==1.5.4
|
| 92 |
six==1.16.0
|
| 93 |
sniffio==1.3.0
|
| 94 |
SQLAlchemy==2.0.25
|
| 95 |
starlette==0.32.0.post1
|
| 96 |
tenacity==8.2.3
|
| 97 |
+
tiktoken==0.7.0
|
| 98 |
tokenizers==0.15.0
|
| 99 |
tomli==2.0.1
|
| 100 |
+
tomlkit==0.12.0
|
| 101 |
toolz==0.12.0
|
| 102 |
tqdm==4.66.1
|
| 103 |
+
typer==0.12.3
|
| 104 |
typing-inspect==0.9.0
|
| 105 |
typing_extensions==4.9.0
|
| 106 |
tzdata==2023.4
|