From a09f0533abcbaaae34c23e20695dcfc126fbc7df Mon Sep 17 00:00:00 2001 From: tzwm Date: Sun, 14 Jan 2024 17:33:36 +0800 Subject: [PATCH] use no_proxy to request for some special enviroments --- nodes/xyz_plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/xyz_plot.py b/nodes/xyz_plot.py index 9827635..2342fc8 100644 --- a/nodes/xyz_plot.py +++ b/nodes/xyz_plot.py @@ -103,7 +103,8 @@ class XyzPlot: 'prompt': new_prompt }).encode('utf-8') - r = requests.post(SERVER_BASE_URL + '/prompt', data=data) + proxies = {"http": "", "https": ""} + r = requests.post(SERVER_BASE_URL + '/prompt', data=data, proxies=proxies) row[vy] = "" for i in range(batch_size):