Ritesh-hf commited on
Commit
5b96ca6
1 Parent(s): 3d0d4d5

update requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +3 -5
  2. requirements.txt +17 -154
app.py CHANGED
@@ -1,4 +1,3 @@
1
- from langchain_core.prompts import ChatPromptTemplate
2
  from langchain_core.output_parsers import StrOutputParser
3
  from langchain_core.runnables import RunnablePassthrough
4
  from langchain_huggingface.embeddings import HuggingFaceEmbeddings
@@ -10,6 +9,8 @@ from langchain_groq import ChatGroq
10
  from langchain import hub
11
  import pickle
12
  import os
 
 
13
 
14
  GROQ_API_KEY="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"
15
  os.environ['GROQ_API_KEY'] = GROQ_API_KEY
@@ -62,16 +63,13 @@ rag_chain = (
62
 
63
 
64
 
65
- import gradio as gr
66
- import spaces
67
- # import torch
68
 
69
  # zero = torch.Tensor([0]).cuda()
70
 
71
  @spaces.GPU
72
  def get_response(question, history):
73
  print(question)
74
-
75
  # for chunk in rag_chain.stream(question):
76
  # yield chunk
77
  respose = rag_chain.invoke(question)
 
 
1
  from langchain_core.output_parsers import StrOutputParser
2
  from langchain_core.runnables import RunnablePassthrough
3
  from langchain_huggingface.embeddings import HuggingFaceEmbeddings
 
9
  from langchain import hub
10
  import pickle
11
  import os
12
+ import gradio as gr
13
+ import spaces
14
 
15
  GROQ_API_KEY="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"
16
  os.environ['GROQ_API_KEY'] = GROQ_API_KEY
 
63
 
64
 
65
 
66
+
 
 
67
 
68
  # zero = torch.Tensor([0]).cuda()
69
 
70
  @spaces.GPU
71
  def get_response(question, history):
72
  print(question)
 
73
  # for chunk in rag_chain.stream(question):
74
  # yield chunk
75
  respose = rag_chain.invoke(question)
requirements.txt CHANGED
@@ -1,132 +1,58 @@
1
  aiofiles==23.2.1
2
  aiohappyeyeballs==2.4.0
3
- aiohttp==3.9.1
4
  aiosignal==1.3.1
5
  annotated-types==0.7.0
6
- antiorm==1.2.1
7
  anyio==4.4.0
8
- asgiref==3.8.1
9
- asttokens==2.4.1
10
  async-timeout==4.0.3
11
  attrs==24.2.0
12
- backcall==0.2.0
13
- backoff==2.2.1
14
- bcrypt==4.2.0
15
- beautifulsoup4==4.12.3
16
- bitarray==2.9.2
17
- blinker==1.8.2
18
- bm25s==0.1.10
19
- build==1.2.1
20
- cachetools==5.5.0
21
- catalogue==2.0.10
22
  certifi==2024.8.30
23
- chardet==5.2.0
24
  charset-normalizer==3.3.2
25
- chroma-hnswlib==0.7.3
26
- chromadb==0.5.3
27
  click==8.1.7
28
- colbert-ai==0.2.19
29
- coloredlogs==15.0.1
30
- comm==0.2.2
31
  contourpy==1.1.1
32
  cycler==0.12.1
33
  dataclasses-json==0.6.7
34
- datasets==2.21.0
35
- db==0.1.1
36
- db-sqlite3==0.0.1
37
- debugpy==1.8.5
38
- decorator==5.1.1
39
- deepdiff==8.0.1
40
- Deprecated==1.2.14
41
- dill==0.3.8
42
- dirtyjson==1.0.8
43
  distro==1.9.0
44
- docx2txt==0.8
45
- emoji==2.12.1
46
- et-xmlfile==1.1.0
47
  exceptiongroup==1.2.2
48
- executing==2.1.0
49
  faiss-cpu==1.8.0.post1
50
- fastapi==0.112.2
 
51
  ffmpy==0.4.0
52
- filelock==3.15.4
53
- filetype==1.2.0
54
- flask==3.0.3
55
- flatbuffers==24.3.25
56
  fonttools==4.53.1
57
  frozenlist==1.4.1
58
  fsspec==2024.9.0
59
- git-python==1.0.3
60
- gitdb==4.0.11
61
- GitPython==3.1.43
62
- google-auth==2.34.0
63
- googleapis-common-protos==1.65.0
64
  gradio==4.44.0
65
  gradio-client==1.3.0
66
- graphlib-backport==1.1.0
67
- greenlet==3.0.3
68
  groq==0.11.0
69
- grpcio==1.66.1
70
  h11==0.14.0
71
  httpcore==1.0.5
72
- httptools==0.6.1
73
  httpx==0.27.2
74
  huggingface-hub==0.24.6
75
- humanfriendly==10.0
76
  idna==3.8
77
- importlib-metadata==8.4.0
78
- importlib-resources==6.4.4
79
- ipykernel==6.29.5
80
- ipython==8.12.3
81
- itsdangerous==2.2.0
82
- jedi==0.19.1
83
  jinja2==3.1.4
84
- jiter==0.5.0
85
  joblib==1.4.2
86
- jq==1.8.0
87
  jsonpatch==1.33
88
- jsonpath-python==1.0.6
89
  jsonpointer==3.0.0
90
- jupyter-client==8.6.2
91
- jupyter-core==5.7.2
92
  kiwisolver==1.4.7
93
- kubernetes==30.1.0
94
  langchain==0.2.16
95
  langchain-community==0.2.16
96
  langchain-core==0.2.39
97
- langchain-experimental==0.0.65
98
  langchain-groq==0.1.9
99
  langchain-huggingface==0.0.3
100
  langchain-text-splitters==0.2.4
101
- langdetect==1.0.9
102
  langsmith==0.1.117
103
- llama-index==0.10.6
104
- llama-index-agent-openai==0.1.7
105
- llama-index-core==0.10.68.post1
106
- llama-index-embeddings-openai==0.1.11
107
- llama-index-legacy==0.9.48.post3
108
- llama-index-llms-openai==0.1.31
109
- llama-index-multi-modal-llms-openai==0.1.9
110
- llama-index-program-openai==0.1.7
111
- llama-index-question-gen-openai==0.1.3
112
- llama-index-readers-file==0.1.33
113
- lxml==5.3.0
114
  markdown-it-py==3.0.0
115
  MarkupSafe==2.1.5
116
  marshmallow==3.22.0
117
  matplotlib==3.7.5
118
- matplotlib-inline==0.1.7
119
  mdurl==0.1.2
120
- mmh3==4.1.0
121
- monotonic==1.6
122
  mpmath==1.3.0
123
- multidict==6.0.5
124
- multiprocess==0.70.16
125
  mypy-extensions==1.0.0
126
- nest-asyncio==1.6.0
127
  networkx==3.1
128
- ninja==1.11.1.1
129
- nltk==3.9.1
130
  numpy==1.24.4
131
  nvidia-cublas-cu12==12.1.3.1
132
  nvidia-cuda-cupti-cu12==12.1.105
@@ -140,114 +66,51 @@ nvidia-cusparse-cu12==12.1.0.106
140
  nvidia-nccl-cu12==2.20.5
141
  nvidia-nvjitlink-cu12==12.6.68
142
  nvidia-nvtx-cu12==12.1.105
143
- oauthlib==3.2.2
144
- onnx==1.16.2
145
- onnxruntime==1.16.3
146
- openai==1.44.1
147
- openpyxl==3.1.5
148
- opentelemetry-api==1.27.0
149
- opentelemetry-exporter-otlp-proto-common==1.27.0
150
- opentelemetry-exporter-otlp-proto-grpc==1.27.0
151
- opentelemetry-instrumentation==0.48b0
152
- opentelemetry-instrumentation-asgi==0.48b0
153
- opentelemetry-instrumentation-fastapi==0.48b0
154
- opentelemetry-proto==1.27.0
155
- opentelemetry-sdk==1.27.0
156
- opentelemetry-semantic-conventions==0.48b0
157
- opentelemetry-util-http==0.48b0
158
- orderly-set==5.2.2
159
  orjson==3.10.7
160
- overrides==7.7.0
161
- packaging==23.2
162
  pandas==2.0.3
163
- parso==0.8.4
164
- pexpect==4.9.0
165
- pickleshare==0.7.5
166
  pillow==10.4.0
167
- platformdirs==4.2.2
168
- posthog==3.6.3
169
- prompt-toolkit==3.0.47
170
- protobuf==5.28.0
171
  psutil==5.9.8
172
- ptyprocess==0.7.0
173
- pure-eval==0.2.3
174
- pyarrow==17.0.0
175
- pyasn1==0.6.0
176
- pyasn1-modules==0.4.0
177
- pydantic==2.8.2
178
- pydantic-core==2.20.1
179
  pydub==0.25.1
180
  pygments==2.18.0
181
  pyparsing==3.1.4
182
- pypdf==4.3.1
183
- PyPika==0.48.9
184
- pyproject-hooks==1.1.0
185
- PyStemmer==2.2.0.1
186
  python-dateutil==2.9.0.post0
187
- python-docx==1.1.2
188
- python-dotenv==1.0.1
189
- python-iso639==2024.4.27
190
- python-magic==0.4.27
191
  python-multipart==0.0.9
192
- pytz==2024.1
193
  PyYAML==6.0.2
194
- pyzmq==26.2.0
195
  rank-bm25==0.2.2
196
- rapidfuzz==3.9.7
197
  regex==2024.7.24
198
  requests==2.32.3
199
- requests-oauthlib==2.0.0
200
- requests-toolbelt==1.0.0
201
- rich==13.8.0
202
- rsa==4.9
203
  ruff==0.6.4
204
- safetensors==0.4.4
205
  scikit-learn==1.3.2
206
  scipy==1.10.1
207
  semantic-version==2.10.0
208
- sentence-transformers==2.7.0
209
  shellingham==1.5.4
210
  six==1.16.0
211
- smmap==5.0.1
212
  sniffio==1.3.1
213
- soupsieve==2.6
214
  spaces==0.30.2
215
- SQLAlchemy==2.0.33
216
- srsly==2.4.8
217
- stack-data==0.6.3
218
- starlette==0.38.4
219
- striprtf==0.0.26
220
  sympy==1.13.2
221
- tabulate==0.9.0
222
  tenacity==8.5.0
223
  threadpoolctl==3.5.0
224
- tiktoken==0.7.0
225
  tokenizers==0.19.1
226
- tomli==2.0.1
227
  tomlkit==0.12.0
228
  torch==2.4.1
229
- tornado==6.4.1
230
  tqdm==4.66.5
231
- traitlets==5.14.3
232
  transformers==4.44.2
233
  triton==3.0.0
234
  typer==0.12.5
235
  typing-extensions==4.12.2
236
  typing-inspect==0.9.0
237
  tzdata==2024.1
238
- ujson==5.10.0
239
- unstructured==0.11.8
240
- unstructured-client==0.25.7
241
  urllib3==2.2.2
242
  uvicorn==0.30.6
243
- uvloop==0.20.0
244
- voyager==2.0.9
245
- watchfiles==0.24.0
246
- wcwidth==0.2.13
247
- websocket-client==1.8.0
248
  websockets==12.0
249
- werkzeug==3.0.4
250
- wrapt==1.16.0
251
- xxhash==3.5.0
252
- yarl==1.9.7
253
  zipp==3.20.1
 
1
  aiofiles==23.2.1
2
  aiohappyeyeballs==2.4.0
3
+ aiohttp==3.10.5
4
  aiosignal==1.3.1
5
  annotated-types==0.7.0
 
6
  anyio==4.4.0
 
 
7
  async-timeout==4.0.3
8
  attrs==24.2.0
 
 
 
 
 
 
 
 
 
 
9
  certifi==2024.8.30
 
10
  charset-normalizer==3.3.2
 
 
11
  click==8.1.7
 
 
 
12
  contourpy==1.1.1
13
  cycler==0.12.1
14
  dataclasses-json==0.6.7
 
 
 
 
 
 
 
 
 
15
  distro==1.9.0
 
 
 
16
  exceptiongroup==1.2.2
 
17
  faiss-cpu==1.8.0.post1
18
+ faiss-gpu==1.7.2
19
+ fastapi==0.114.1
20
  ffmpy==0.4.0
21
+ filelock==3.16.0
 
 
 
22
  fonttools==4.53.1
23
  frozenlist==1.4.1
24
  fsspec==2024.9.0
 
 
 
 
 
25
  gradio==4.44.0
26
  gradio-client==1.3.0
27
+ greenlet==3.1.0
 
28
  groq==0.11.0
 
29
  h11==0.14.0
30
  httpcore==1.0.5
 
31
  httpx==0.27.2
32
  huggingface-hub==0.24.6
 
33
  idna==3.8
34
+ importlib-resources==6.4.5
 
 
 
 
 
35
  jinja2==3.1.4
 
36
  joblib==1.4.2
 
37
  jsonpatch==1.33
 
38
  jsonpointer==3.0.0
 
 
39
  kiwisolver==1.4.7
 
40
  langchain==0.2.16
41
  langchain-community==0.2.16
42
  langchain-core==0.2.39
 
43
  langchain-groq==0.1.9
44
  langchain-huggingface==0.0.3
45
  langchain-text-splitters==0.2.4
 
46
  langsmith==0.1.117
 
 
 
 
 
 
 
 
 
 
 
47
  markdown-it-py==3.0.0
48
  MarkupSafe==2.1.5
49
  marshmallow==3.22.0
50
  matplotlib==3.7.5
 
51
  mdurl==0.1.2
 
 
52
  mpmath==1.3.0
53
+ multidict==6.1.0
 
54
  mypy-extensions==1.0.0
 
55
  networkx==3.1
 
 
56
  numpy==1.24.4
57
  nvidia-cublas-cu12==12.1.3.1
58
  nvidia-cuda-cupti-cu12==12.1.105
 
66
  nvidia-nccl-cu12==2.20.5
67
  nvidia-nvjitlink-cu12==12.6.68
68
  nvidia-nvtx-cu12==12.1.105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  orjson==3.10.7
70
+ packaging==24.1
 
71
  pandas==2.0.3
 
 
 
72
  pillow==10.4.0
 
 
 
 
73
  psutil==5.9.8
74
+ pydantic==2.9.1
75
+ pydantic-core==2.23.3
 
 
 
 
 
76
  pydub==0.25.1
77
  pygments==2.18.0
78
  pyparsing==3.1.4
 
 
 
 
79
  python-dateutil==2.9.0.post0
 
 
 
 
80
  python-multipart==0.0.9
81
+ pytz==2024.2
82
  PyYAML==6.0.2
 
83
  rank-bm25==0.2.2
 
84
  regex==2024.7.24
85
  requests==2.32.3
86
+ rich==13.8.1
 
 
 
87
  ruff==0.6.4
88
+ safetensors==0.4.5
89
  scikit-learn==1.3.2
90
  scipy==1.10.1
91
  semantic-version==2.10.0
92
+ sentence-transformers==3.1.0
93
  shellingham==1.5.4
94
  six==1.16.0
 
95
  sniffio==1.3.1
 
96
  spaces==0.30.2
97
+ SQLAlchemy==2.0.34
98
+ starlette==0.38.5
 
 
 
99
  sympy==1.13.2
 
100
  tenacity==8.5.0
101
  threadpoolctl==3.5.0
 
102
  tokenizers==0.19.1
 
103
  tomlkit==0.12.0
104
  torch==2.4.1
 
105
  tqdm==4.66.5
 
106
  transformers==4.44.2
107
  triton==3.0.0
108
  typer==0.12.5
109
  typing-extensions==4.12.2
110
  typing-inspect==0.9.0
111
  tzdata==2024.1
 
 
 
112
  urllib3==2.2.2
113
  uvicorn==0.30.6
 
 
 
 
 
114
  websockets==12.0
115
+ yarl==1.11.1
 
 
 
116
  zipp==3.20.1