Golfn commited on
Commit
e0fb5c1
·
1 Parent(s): 4a59382

add gradio_oauth to run gradio locally

Browse files
Files changed (2) hide show
  1. pdm.lock +83 -6
  2. pyproject.toml +1 -1
pdm.lock CHANGED
@@ -5,7 +5,7 @@
5
  groups = ["default"]
6
  strategy = ["inherit_metadata"]
7
  lock_version = "4.5.0"
8
- content_hash = "sha256:f81ca77951af90dfb67b0a9d676c0253886d33ef89a7089a391b0c0e87462336"
9
 
10
  [[metadata.targets]]
11
  requires_python = "==3.12.*"
@@ -139,6 +139,20 @@ files = [
139
  {file = "attrs-25.3.0.tar.gz", hash = "sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"},
140
  ]
141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  [[package]]
143
  name = "certifi"
144
  version = "2025.4.26"
@@ -156,7 +170,6 @@ version = "1.17.1"
156
  requires_python = ">=3.8"
157
  summary = "Foreign Function Interface for Python calling C code."
158
  groups = ["default"]
159
- marker = "platform_python_implementation == \"PyPy\""
160
  dependencies = [
161
  "pycparser",
162
  ]
@@ -249,6 +262,43 @@ files = [
249
  {file = "contourpy-1.3.2.tar.gz", hash = "sha256:b6945942715a034c671b7fc54f9588126b0b8bf23db2696e3ca8328f3ff0ab54"},
250
  ]
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  [[package]]
253
  name = "cycler"
254
  version = "0.12.1"
@@ -509,7 +559,7 @@ files = [
509
 
510
  [[package]]
511
  name = "gradio"
512
- version = "5.29.1"
513
  requires_python = ">=3.10"
514
  summary = "Python library for easily interacting with trained machine learning models"
515
  groups = ["default"]
@@ -545,8 +595,8 @@ dependencies = [
545
  "uvicorn>=0.14.0; sys_platform != \"emscripten\"",
546
  ]
547
  files = [
548
- {file = "gradio-5.29.1-py3-none-any.whl", hash = "sha256:e6fb5e984c514a8a863feaa7a6d56a8c5ded16e14c301bb3716ebe2c1ca0556c"},
549
- {file = "gradio-5.29.1.tar.gz", hash = "sha256:34a39d1d2d21e73f01912ec59d15a507d6501b158840ebf63696b5cff1a9d8a6"},
550
  ]
551
 
552
  [[package]]
@@ -568,6 +618,23 @@ files = [
568
  {file = "gradio_client-1.10.1.tar.gz", hash = "sha256:550662eae8dc0d06d44cb8d42be74f214db1e793ad4d789d7b7ecb42e82ca045"},
569
  ]
570
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
571
  [[package]]
572
  name = "greenlet"
573
  version = "3.2.2"
@@ -767,6 +834,17 @@ files = [
767
  {file = "iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"},
768
  ]
769
 
 
 
 
 
 
 
 
 
 
 
 
770
  [[package]]
771
  name = "jinja2"
772
  version = "3.1.6"
@@ -1759,7 +1837,6 @@ version = "2.22"
1759
  requires_python = ">=3.8"
1760
  summary = "C parser in Python"
1761
  groups = ["default"]
1762
- marker = "platform_python_implementation == \"PyPy\""
1763
  files = [
1764
  {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},
1765
  {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},
 
5
  groups = ["default"]
6
  strategy = ["inherit_metadata"]
7
  lock_version = "4.5.0"
8
+ content_hash = "sha256:0a97185846a161ec64e2d5bf0341f628f183b7ab9ace6794f2cdfe3665f06de2"
9
 
10
  [[metadata.targets]]
11
  requires_python = "==3.12.*"
 
139
  {file = "attrs-25.3.0.tar.gz", hash = "sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"},
140
  ]
141
 
142
+ [[package]]
143
+ name = "authlib"
144
+ version = "1.6.0"
145
+ requires_python = ">=3.9"
146
+ summary = "The ultimate Python library in building OAuth and OpenID Connect servers and clients."
147
+ groups = ["default"]
148
+ dependencies = [
149
+ "cryptography",
150
+ ]
151
+ files = [
152
+ {file = "authlib-1.6.0-py2.py3-none-any.whl", hash = "sha256:91685589498f79e8655e8a8947431ad6288831d643f11c55c2143ffcc738048d"},
153
+ {file = "authlib-1.6.0.tar.gz", hash = "sha256:4367d32031b7af175ad3a323d571dc7257b7099d55978087ceae4a0d88cd3210"},
154
+ ]
155
+
156
  [[package]]
157
  name = "certifi"
158
  version = "2025.4.26"
 
170
  requires_python = ">=3.8"
171
  summary = "Foreign Function Interface for Python calling C code."
172
  groups = ["default"]
 
173
  dependencies = [
174
  "pycparser",
175
  ]
 
262
  {file = "contourpy-1.3.2.tar.gz", hash = "sha256:b6945942715a034c671b7fc54f9588126b0b8bf23db2696e3ca8328f3ff0ab54"},
263
  ]
264
 
265
+ [[package]]
266
+ name = "cryptography"
267
+ version = "45.0.2"
268
+ requires_python = "!=3.9.0,!=3.9.1,>=3.7"
269
+ summary = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
270
+ groups = ["default"]
271
+ dependencies = [
272
+ "cffi>=1.14; platform_python_implementation != \"PyPy\"",
273
+ ]
274
+ files = [
275
+ {file = "cryptography-45.0.2-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:61a8b1bbddd9332917485b2453d1de49f142e6334ce1d97b7916d5a85d179c84"},
276
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4cc31c66411e14dd70e2f384a9204a859dc25b05e1f303df0f5326691061b839"},
277
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:463096533acd5097f8751115bc600b0b64620c4aafcac10c6d0041e6e68f88fe"},
278
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:cdafb86eb673c3211accffbffdb3cdffa3aaafacd14819e0898d23696d18e4d3"},
279
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:05c2385b1f5c89a17df19900cfb1345115a77168f5ed44bdf6fd3de1ce5cc65b"},
280
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:e9e4bdcd70216b08801e267c0b563316b787f957a46e215249921f99288456f9"},
281
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:b2de529027579e43b6dc1f805f467b102fb7d13c1e54c334f1403ee2b37d0059"},
282
+ {file = "cryptography-45.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:10d68763892a7b19c22508ab57799c4423c7c8cd61d7eee4c5a6a55a46511949"},
283
+ {file = "cryptography-45.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:d2a90ce2f0f5b695e4785ac07c19a58244092f3c85d57db6d8eb1a2b26d2aad6"},
284
+ {file = "cryptography-45.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:59c0c8f043dd376bbd9d4f636223836aed50431af4c5a467ed9bf61520294627"},
285
+ {file = "cryptography-45.0.2-cp311-abi3-win32.whl", hash = "sha256:80303ee6a02ef38c4253160446cbeb5c400c07e01d4ddbd4ff722a89b736d95a"},
286
+ {file = "cryptography-45.0.2-cp311-abi3-win_amd64.whl", hash = "sha256:7429936146063bd1b2cfc54f0e04016b90ee9b1c908a7bed0800049cbace70eb"},
287
+ {file = "cryptography-45.0.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:e86c8d54cd19a13e9081898b3c24351683fd39d726ecf8e774aaa9d8d96f5f3a"},
288
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e328357b6bbf79928363dbf13f4635b7aac0306afb7e5ad24d21d0c5761c3253"},
289
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49af56491473231159c98c2c26f1a8f3799a60e5cf0e872d00745b858ddac9d2"},
290
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f169469d04a23282de9d0be349499cb6683b6ff1b68901210faacac9b0c24b7d"},
291
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cfd1399064b13043082c660ddd97a0358e41c8b0dc7b77c1243e013d305c344"},
292
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:18f8084b7ca3ce1b8d38bdfe33c48116edf9a08b4d056ef4a96dceaa36d8d965"},
293
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:2cb03a944a1a412724d15a7c051d50e63a868031f26b6a312f2016965b661942"},
294
+ {file = "cryptography-45.0.2-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:a9727a21957d3327cf6b7eb5ffc9e4b663909a25fea158e3fcbc49d4cdd7881b"},
295
+ {file = "cryptography-45.0.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ddb8d01aa900b741d6b7cc585a97aff787175f160ab975e21f880e89d810781a"},
296
+ {file = "cryptography-45.0.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:c0c000c1a09f069632d8a9eb3b610ac029fcc682f1d69b758e625d6ee713f4ed"},
297
+ {file = "cryptography-45.0.2-cp37-abi3-win32.whl", hash = "sha256:08281de408e7eb71ba3cd5098709a356bfdf65eebd7ee7633c3610f0aa80d79b"},
298
+ {file = "cryptography-45.0.2-cp37-abi3-win_amd64.whl", hash = "sha256:48caa55c528617fa6db1a9c3bf2e37ccb31b73e098ac2b71408d1f2db551dde4"},
299
+ {file = "cryptography-45.0.2.tar.gz", hash = "sha256:d784d57b958ffd07e9e226d17272f9af0c41572557604ca7554214def32c26bf"},
300
+ ]
301
+
302
  [[package]]
303
  name = "cycler"
304
  version = "0.12.1"
 
559
 
560
  [[package]]
561
  name = "gradio"
562
+ version = "5.31.0"
563
  requires_python = ">=3.10"
564
  summary = "Python library for easily interacting with trained machine learning models"
565
  groups = ["default"]
 
595
  "uvicorn>=0.14.0; sys_platform != \"emscripten\"",
596
  ]
597
  files = [
598
+ {file = "gradio-5.31.0-py3-none-any.whl", hash = "sha256:4a31956c7290ce1277db07f15f197b602df2e7be147083136265d52e7887b156"},
599
+ {file = "gradio-5.31.0.tar.gz", hash = "sha256:fba0c84d69cf489938eb64bef4c19d53300eb9af62e8cc0b12e02ae9072b7623"},
600
  ]
601
 
602
  [[package]]
 
618
  {file = "gradio_client-1.10.1.tar.gz", hash = "sha256:550662eae8dc0d06d44cb8d42be74f214db1e793ad4d789d7b7ecb42e82ca045"},
619
  ]
620
 
621
+ [[package]]
622
+ name = "gradio"
623
+ version = "5.31.0"
624
+ extras = ["oauth"]
625
+ requires_python = ">=3.10"
626
+ summary = "Python library for easily interacting with trained machine learning models"
627
+ groups = ["default"]
628
+ dependencies = [
629
+ "authlib",
630
+ "gradio==5.31.0",
631
+ "itsdangerous",
632
+ ]
633
+ files = [
634
+ {file = "gradio-5.31.0-py3-none-any.whl", hash = "sha256:4a31956c7290ce1277db07f15f197b602df2e7be147083136265d52e7887b156"},
635
+ {file = "gradio-5.31.0.tar.gz", hash = "sha256:fba0c84d69cf489938eb64bef4c19d53300eb9af62e8cc0b12e02ae9072b7623"},
636
+ ]
637
+
638
  [[package]]
639
  name = "greenlet"
640
  version = "3.2.2"
 
834
  {file = "iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"},
835
  ]
836
 
837
+ [[package]]
838
+ name = "itsdangerous"
839
+ version = "2.2.0"
840
+ requires_python = ">=3.8"
841
+ summary = "Safely pass data to untrusted environments and back."
842
+ groups = ["default"]
843
+ files = [
844
+ {file = "itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef"},
845
+ {file = "itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"},
846
+ ]
847
+
848
  [[package]]
849
  name = "jinja2"
850
  version = "3.1.6"
 
1837
  requires_python = ">=3.8"
1838
  summary = "C parser in Python"
1839
  groups = ["default"]
 
1840
  files = [
1841
  {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},
1842
  {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},
pyproject.toml CHANGED
@@ -5,7 +5,7 @@ description = "Default template for PDM package"
5
  authors = [
6
  {name = "Supphawit_Golf", email = "supphawit.n@gmail.com"},
7
  ]
8
- dependencies = ["langchain>=0.3.25", "huggingface-hub>=0.31.2", "pandas>=2.2.3", "langgraph>=0.4.5", "langchain-openai>=0.3.17", "dotenv>=0.9.9", "datasets>=3.6.0", "langchain-community>=0.3.24", "rank-bm25>=0.2.2", "langchain-huggingface>=0.2.0", "duckduckgo-search>=8.0.2", "requests>=2.32.3", "gradio>=5.29.1", "arxiv>=2.2.0", "pymupdf>=1.25.5", "pymilvus>=2.5.9", "supabase>=2.15.1", "psycopg2-binary>=2.9.10", "matplotlib>=3.10.3"]
9
  requires-python = "==3.12.*"
10
  readme = "README.md"
11
  license = {text = "MIT"}
 
5
  authors = [
6
  {name = "Supphawit_Golf", email = "supphawit.n@gmail.com"},
7
  ]
8
+ dependencies = ["langchain>=0.3.25", "huggingface-hub>=0.31.2", "pandas>=2.2.3", "langgraph>=0.4.5", "langchain-openai>=0.3.17", "dotenv>=0.9.9", "datasets>=3.6.0", "langchain-community>=0.3.24", "rank-bm25>=0.2.2", "langchain-huggingface>=0.2.0", "duckduckgo-search>=8.0.2", "requests>=2.32.3", "gradio[oauth]>=5.31.0", "arxiv>=2.2.0", "pymupdf>=1.25.5", "pymilvus>=2.5.9", "supabase>=2.15.1", "psycopg2-binary>=2.9.10", "matplotlib>=3.10.3"]
9
  requires-python = "==3.12.*"
10
  readme = "README.md"
11
  license = {text = "MIT"}