peinan commited on
Commit
0491f7e
1 Parent(s): 2dd7b08

add pre-commit config

Browse files
.pre-commit-config.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: local
3
+ hooks:
4
+ - id: generate-requirements
5
+ name: Generate requirements.txt from requirements.lock and add to git
6
+ entry: bash -c './scripts/generate-requirements.sh'
7
+ language: system
8
+ always_run: true
9
+ pass_filenames: false
10
+
requirements.txt ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # generated by rye
2
+ # use `rye lock` or `rye sync` to update this lockfile
3
+ #
4
+ # last locked with the following flags:
5
+ # pre: false
6
+ # features: []
7
+ # all-features: false
8
+ # with-sources: false
9
+
10
+ -e file:.
11
+ aiofiles==23.2.1
12
+ # via gradio
13
+ aiohttp==3.9.3
14
+ # via langchain
15
+ # via langchain-community
16
+ aiosignal==1.3.1
17
+ # via aiohttp
18
+ altair==5.2.0
19
+ # via gradio
20
+ annotated-types==0.6.0
21
+ # via pydantic
22
+ anyio==4.3.0
23
+ # via httpx
24
+ # via langchain-core
25
+ # via starlette
26
+ attrs==23.2.0
27
+ # via aiohttp
28
+ # via jsonschema
29
+ # via referencing
30
+ certifi==2024.2.2
31
+ # via httpcore
32
+ # via httpx
33
+ # via requests
34
+ charset-normalizer==3.3.2
35
+ # via requests
36
+ click==8.1.7
37
+ # via typer
38
+ # via uvicorn
39
+ colorama==0.4.6
40
+ # via typer
41
+ contourpy==1.2.0
42
+ # via matplotlib
43
+ cycler==0.12.1
44
+ # via matplotlib
45
+ dataclasses-json==0.6.4
46
+ # via langchain
47
+ # via langchain-community
48
+ fastapi==0.110.0
49
+ # via gradio
50
+ ffmpy==0.3.2
51
+ # via gradio
52
+ filelock==3.13.1
53
+ # via huggingface-hub
54
+ fonttools==4.49.0
55
+ # via matplotlib
56
+ frozenlist==1.4.1
57
+ # via aiohttp
58
+ # via aiosignal
59
+ fsspec==2024.2.0
60
+ # via gradio-client
61
+ # via huggingface-hub
62
+ gradio==4.19.2
63
+ # via gradio-pdf
64
+ # via pdfchat
65
+ gradio-client==0.10.1
66
+ # via gradio
67
+ gradio-pdf==0.0.5
68
+ # via pdfchat
69
+ h11==0.14.0
70
+ # via httpcore
71
+ # via uvicorn
72
+ httpcore==1.0.4
73
+ # via httpx
74
+ httpx==0.27.0
75
+ # via gradio
76
+ # via gradio-client
77
+ huggingface-hub==0.20.3
78
+ # via gradio
79
+ # via gradio-client
80
+ idna==3.6
81
+ # via anyio
82
+ # via httpx
83
+ # via requests
84
+ # via yarl
85
+ importlib-resources==6.1.1
86
+ # via gradio
87
+ jinja2==3.1.3
88
+ # via altair
89
+ # via gradio
90
+ jsonpatch==1.33
91
+ # via langchain
92
+ # via langchain-core
93
+ jsonpointer==2.4
94
+ # via jsonpatch
95
+ jsonschema==4.21.1
96
+ # via altair
97
+ jsonschema-specifications==2023.12.1
98
+ # via jsonschema
99
+ kiwisolver==1.4.5
100
+ # via matplotlib
101
+ langchain==0.1.9
102
+ # via pdfchat
103
+ langchain-community==0.0.24
104
+ # via langchain
105
+ langchain-core==0.1.26
106
+ # via langchain
107
+ # via langchain-community
108
+ langsmith==0.1.8
109
+ # via langchain
110
+ # via langchain-community
111
+ # via langchain-core
112
+ loguru==0.7.2
113
+ # via pdfchat
114
+ markdown-it-py==3.0.0
115
+ # via rich
116
+ markupsafe==2.1.5
117
+ # via gradio
118
+ # via jinja2
119
+ marshmallow==3.20.2
120
+ # via dataclasses-json
121
+ matplotlib==3.8.3
122
+ # via gradio
123
+ mdurl==0.1.2
124
+ # via markdown-it-py
125
+ multidict==6.0.5
126
+ # via aiohttp
127
+ # via yarl
128
+ mypy-extensions==1.0.0
129
+ # via typing-inspect
130
+ numpy==1.26.4
131
+ # via altair
132
+ # via contourpy
133
+ # via gradio
134
+ # via langchain
135
+ # via langchain-community
136
+ # via matplotlib
137
+ # via pandas
138
+ orjson==3.9.15
139
+ # via gradio
140
+ # via langsmith
141
+ packaging==23.2
142
+ # via altair
143
+ # via gradio
144
+ # via gradio-client
145
+ # via huggingface-hub
146
+ # via langchain-core
147
+ # via marshmallow
148
+ # via matplotlib
149
+ pandas==2.2.1
150
+ # via altair
151
+ # via gradio
152
+ pillow==10.2.0
153
+ # via gradio
154
+ # via matplotlib
155
+ pydantic==2.6.2
156
+ # via fastapi
157
+ # via gradio
158
+ # via langchain
159
+ # via langchain-core
160
+ # via langsmith
161
+ pydantic-core==2.16.3
162
+ # via pydantic
163
+ pydub==0.25.1
164
+ # via gradio
165
+ pygments==2.17.2
166
+ # via rich
167
+ pyparsing==3.1.1
168
+ # via matplotlib
169
+ python-dateutil==2.8.2
170
+ # via matplotlib
171
+ # via pandas
172
+ python-multipart==0.0.9
173
+ # via gradio
174
+ pytz==2024.1
175
+ # via pandas
176
+ pyyaml==6.0.1
177
+ # via gradio
178
+ # via huggingface-hub
179
+ # via langchain
180
+ # via langchain-community
181
+ # via langchain-core
182
+ referencing==0.33.0
183
+ # via jsonschema
184
+ # via jsonschema-specifications
185
+ requests==2.31.0
186
+ # via huggingface-hub
187
+ # via langchain
188
+ # via langchain-community
189
+ # via langchain-core
190
+ # via langsmith
191
+ rich==13.7.0
192
+ # via typer
193
+ rpds-py==0.18.0
194
+ # via jsonschema
195
+ # via referencing
196
+ ruff==0.2.2
197
+ # via gradio
198
+ semantic-version==2.10.0
199
+ # via gradio
200
+ shellingham==1.5.4
201
+ # via typer
202
+ six==1.16.0
203
+ # via python-dateutil
204
+ sniffio==1.3.0
205
+ # via anyio
206
+ # via httpx
207
+ sqlalchemy==2.0.27
208
+ # via langchain
209
+ # via langchain-community
210
+ starlette==0.36.3
211
+ # via fastapi
212
+ tenacity==8.2.3
213
+ # via langchain
214
+ # via langchain-community
215
+ # via langchain-core
216
+ tomlkit==0.12.0
217
+ # via gradio
218
+ toolz==0.12.1
219
+ # via altair
220
+ tqdm==4.66.2
221
+ # via huggingface-hub
222
+ typer==0.9.0
223
+ # via gradio
224
+ typing-extensions==4.9.0
225
+ # via fastapi
226
+ # via gradio
227
+ # via gradio-client
228
+ # via huggingface-hub
229
+ # via pydantic
230
+ # via pydantic-core
231
+ # via sqlalchemy
232
+ # via typer
233
+ # via typing-inspect
234
+ typing-inspect==0.9.0
235
+ # via dataclasses-json
236
+ tzdata==2024.1
237
+ # via pandas
238
+ urllib3==2.2.1
239
+ # via requests
240
+ uvicorn==0.27.1
241
+ # via gradio
242
+ websockets==11.0.3
243
+ # via gradio-client
244
+ yarl==1.9.4
245
+ # via aiohttp
scripts/generate-requirements.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ cp requirements.lock requirements.txt
4
+ git add requirements.txt