From f1594cfddecf2bd47a25d54852834b392eaa4efd Mon Sep 17 00:00:00 2001 From: Aymane Hrouch Date: Thu, 27 Apr 2023 15:43:59 +0100 Subject: Reformat code using PyCharm --- unfinished/openprompt/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'unfinished/openprompt/main.py') diff --git a/unfinished/openprompt/main.py b/unfinished/openprompt/main.py index 2fa4508e..e68a3b63 100644 --- a/unfinished/openprompt/main.py +++ b/unfinished/openprompt/main.py @@ -30,8 +30,7 @@ json_data = { ], } -response = requests.post('https://openprompt.co/api/chat2', cookies=cookies, headers=headers, json=json_data, stream=True) +response = requests.post('https://openprompt.co/api/chat2', cookies=cookies, headers=headers, json=json_data, + stream=True) for chunk in response.iter_content(chunk_size=1024): print(chunk) - - -- cgit v1.2.3