From b38c9d14443e4596afd8f379c1a99cda2a9492c1 Mon Sep 17 00:00:00 2001 From: ajokar Date: Sun, 22 Sep 2024 20:19:25 +0330 Subject: [PATCH] =?UTF-8?q?=D8=A7=D8=B5=D9=84=D8=A7=D8=AD=20ai=20dataset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- import_data/ai_keyword_insert_02.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/import_data/ai_keyword_insert_02.py b/import_data/ai_keyword_insert_02.py index df2062f..a1e6a79 100644 --- a/import_data/ai_keyword_insert_02.py +++ b/import_data/ai_keyword_insert_02.py @@ -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()