clarifai 10.3.2__py3-none-any.whl → 10.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- clarifai/client/dataset.py +3 -3
- clarifai/rag/rag.py +1 -2
- clarifai/versions.py +1 -1
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/METADATA +8 -5
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/RECORD +9 -9
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/LICENSE +0 -0
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/WHEEL +0 -0
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/entry_points.txt +0 -0
- {clarifai-10.3.2.dist-info → clarifai-10.5.0.dist-info}/top_level.txt +0 -0
clarifai/client/dataset.py
CHANGED
@@ -416,9 +416,6 @@ class Dataset(Lister, BaseClient):
|
|
416
416
|
log_warnings (bool): True if you want to save log warnings in a file
|
417
417
|
kwargs: Additional keyword arguments for retry uploading functionality..
|
418
418
|
"""
|
419
|
-
#add file handler to log warnings
|
420
|
-
if log_warnings:
|
421
|
-
add_file_handler(self.logger, f"Dataset_Upload{str(int(datetime.now().timestamp()))}.log")
|
422
419
|
#set batch size and task
|
423
420
|
self.batch_size = min(self.batch_size, batch_size)
|
424
421
|
self.task = dataloader.task
|
@@ -442,6 +439,9 @@ class Dataset(Lister, BaseClient):
|
|
442
439
|
if get_upload_status:
|
443
440
|
pre_upload_stats = self.get_upload_status(pre_upload=True)
|
444
441
|
|
442
|
+
#add file handler to log warnings
|
443
|
+
if log_warnings:
|
444
|
+
add_file_handler(self.logger, f"Dataset_Upload{str(int(datetime.now().timestamp()))}.log")
|
445
445
|
self._data_upload(dataset_obj, **kwargs)
|
446
446
|
|
447
447
|
if get_upload_status:
|
clarifai/rag/rag.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import uuid
|
2
|
-
from datetime import datetime
|
3
2
|
from typing import List
|
4
3
|
|
5
4
|
import yaml
|
@@ -76,7 +75,7 @@ class RAG:
|
|
76
75
|
>>> rag_agent = RAG.setup(app_url=YOUR_APP_URL)
|
77
76
|
>>> rag_agent.chat(messages=[{"role":"human", "content":"What is Clarifai"}])
|
78
77
|
"""
|
79
|
-
now_ts =
|
78
|
+
now_ts = uuid.uuid4().hex[:10]
|
80
79
|
if user_id and not app_url:
|
81
80
|
user = User(user_id=user_id, base_url=base_url, pat=pat)
|
82
81
|
## Create an App
|
clarifai/versions.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: clarifai
|
3
|
-
Version: 10.
|
3
|
+
Version: 10.5.0
|
4
4
|
Summary: Clarifai Python SDK
|
5
5
|
Home-page: https://github.com/Clarifai/clarifai-python
|
6
6
|
Author: Clarifai
|
@@ -20,13 +20,13 @@ Classifier: Operating System :: OS Independent
|
|
20
20
|
Requires-Python: >=3.8
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
License-File: LICENSE
|
23
|
-
Requires-Dist: clarifai-grpc
|
23
|
+
Requires-Dist: clarifai-grpc >=10.5.0
|
24
24
|
Requires-Dist: numpy >=1.22.0
|
25
25
|
Requires-Dist: tqdm >=4.65.0
|
26
26
|
Requires-Dist: tritonclient >=2.34.0
|
27
27
|
Requires-Dist: rich >=13.4.2
|
28
28
|
Requires-Dist: PyYAML >=6.0.1
|
29
|
-
Requires-Dist: schema
|
29
|
+
Requires-Dist: schema ==0.7.5
|
30
30
|
Requires-Dist: Pillow >=9.5.0
|
31
31
|
Requires-Dist: inquirerpy ==0.3.4
|
32
32
|
Requires-Dist: tabulate >=0.9.0
|
@@ -170,11 +170,14 @@ dataset.upload_dataset(dataloader=coco_dataloader, get_upload_status=True)
|
|
170
170
|
#Try upload and record the failed outputs in log file.
|
171
171
|
from clarifai.datasets.upload.utils import load_module_dataloader
|
172
172
|
cifar_dataloader = load_module_dataloader('./image_classification/cifar10')
|
173
|
-
dataset.upload_dataset(dataloader=cifar_dataloader,
|
173
|
+
dataset.upload_dataset(dataloader=cifar_dataloader,
|
174
|
+
get_upload_status=True,
|
175
|
+
log_warnings =True)
|
174
176
|
|
175
177
|
#Retry upload from logs for `upload_dataset`
|
178
|
+
# Set retry_duplicates to True if you want to ingest failed inputs due to duplication issues. by default it is set to 'False'.
|
176
179
|
dataset.retry_upload_from_logs(dataloader=cifar_dataloader, log_file_path='log_file.log',
|
177
|
-
retry_duplicates=
|
180
|
+
retry_duplicates=True,
|
178
181
|
log_warnings=True)
|
179
182
|
|
180
183
|
#upload text from csv
|
@@ -1,11 +1,11 @@
|
|
1
1
|
clarifai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
clarifai/cli.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
clarifai/errors.py,sha256=RwzTajwds51wLD0MVlMC5kcpBnzRpreDLlazPSBZxrg,2605
|
4
|
-
clarifai/versions.py,sha256=
|
4
|
+
clarifai/versions.py,sha256=45yN_CYVHYMj9_5f2wK7IgHdCYaA5KHH9NBdC2-5rj0,186
|
5
5
|
clarifai/client/__init__.py,sha256=xI1U0l5AZdRThvQAXCLsd9axxyFzXXJ22m8LHqVjQRU,662
|
6
6
|
clarifai/client/app.py,sha256=LC3rnuqr97f-S7LsJ9Q7KZnYMBHGDAq4mcFjjcPjpqo,27240
|
7
7
|
clarifai/client/base.py,sha256=FrnSY9tSxjTxhABfBzQz5-PEppWMPbIyvSNnx8mVz8s,6919
|
8
|
-
clarifai/client/dataset.py,sha256=
|
8
|
+
clarifai/client/dataset.py,sha256=XX-J-9Ict1CQrEycq-JbdxUTuucSgLeDSvnlHE1ucQY,29903
|
9
9
|
clarifai/client/input.py,sha256=Av_gPrmwa1vorDs5Pz9jUbY1MwXHYFb3NyF_a1S1aII,41630
|
10
10
|
clarifai/client/lister.py,sha256=03KGMvs5RVyYqxLsSrWhNc34I8kiF1Ph0NeyEwu7nMU,2082
|
11
11
|
clarifai/client/model.py,sha256=QTVSeR3D3SHh8rK6kWHATy87qS8khYeXIKbs9dn5W4I,58487
|
@@ -90,7 +90,7 @@ clarifai/modules/css.py,sha256=kadCEunmyh5h2yf0-4aysE3ZcZ6qaQcxuAgDXS96yF8,2020
|
|
90
90
|
clarifai/modules/pages.py,sha256=iOoM3RNRMgXlV0qBqcdQofxoXo2RuRQh0h9c9BIS0-I,1383
|
91
91
|
clarifai/modules/style.css,sha256=j7FNPZVhLPj35vvBksAJ90RuX5sLuqzDR5iM2WIEhiA,6073
|
92
92
|
clarifai/rag/__init__.py,sha256=wu3PzAzo7uqgrEzuaC9lY_3gj1HFiR3GU3elZIKTT5g,40
|
93
|
-
clarifai/rag/rag.py,sha256=
|
93
|
+
clarifai/rag/rag.py,sha256=ySKI4ChHTJSj3nOL9gfOuZ-0hZTfHFZXVJaO6pX0KkM,12356
|
94
94
|
clarifai/rag/utils.py,sha256=yr1jAcbpws4vFGBqlAwPPE7v1DRba48g8gixLFw8OhQ,4070
|
95
95
|
clarifai/schema/search.py,sha256=JjTi8ammJgZZ2OGl4K6tIA4zEJ1Fr2ASZARXavI1j5c,2448
|
96
96
|
clarifai/urls/helper.py,sha256=tjoMGGHuWX68DUB0pk4MEjrmFsClUAQj2jmVEM_Sy78,4751
|
@@ -106,9 +106,9 @@ clarifai/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
106
106
|
clarifai/workflows/export.py,sha256=vICRhIreqDSShxLKjHNM2JwzKsf1B4fdXB0ciMcA70k,1945
|
107
107
|
clarifai/workflows/utils.py,sha256=nGeB_yjVgUO9kOeKTg4OBBaBz-AwXI3m-huSVj-9W18,1924
|
108
108
|
clarifai/workflows/validate.py,sha256=yJq03MaJqi5AK3alKGJJBR89xmmjAQ31sVufJUiOqY8,2556
|
109
|
-
clarifai-10.
|
110
|
-
clarifai-10.
|
111
|
-
clarifai-10.
|
112
|
-
clarifai-10.
|
113
|
-
clarifai-10.
|
114
|
-
clarifai-10.
|
109
|
+
clarifai-10.5.0.dist-info/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
|
110
|
+
clarifai-10.5.0.dist-info/METADATA,sha256=XR2mF-8uqgbOp-nJXh97xrzITiszzpnq0D7xffqUryM,19372
|
111
|
+
clarifai-10.5.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
112
|
+
clarifai-10.5.0.dist-info/entry_points.txt,sha256=qZOr_MIPG0dBBE1zringDJS_wXNGTAA_SQ-zcbmDHOw,82
|
113
|
+
clarifai-10.5.0.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
|
114
|
+
clarifai-10.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|