اصلاح ai dataset

This commit is contained in:
ajokar 2024-09-22 20:19:25 +03:30
parent 81c395d364
commit b38c9d1444

View File

@ -154,12 +154,12 @@ for i, line in enumerate(lines):
bulk_data.append(data)
bulk_count += 1
if bulk_data.__len__() > 10:
if bulk_data.__len__() > 500:
print("=" * 30)
print("count " + str(count))
payload = json.dumps(bulk_data, cls=JSONEncoder) # Works!
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
print(response)
bulk_data = []
bulk_count = 1
@ -168,7 +168,7 @@ if bulk_data.__len__() > 0:
print(bulk_count)
payload = json.dumps(bulk_data, cls=JSONEncoder) # Works!
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
print(response)
# print(len(aikeis))
# address2 = os.getcwd()