From 58f46ea51ea9a27345914268d437ac25970785e4 Mon Sep 17 00:00:00 2001 From: HfCloud Date: Mon, 6 Feb 2023 03:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E8=BF=AD=E4=BB=A3=E6=AC=A1=E6=95=B0=E4=B8=BA20=EF=BC=8C?= =?UTF-8?q?=E5=92=8Cwebui=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 2ec641c..104bd12 100644 --- a/bot.py +++ b/bot.py @@ -118,7 +118,7 @@ def app_draw(): else: W = 768 H = 768 - ITS = 50 + ITS = config_json.get('DefaultDiffutionIterations', 20) NUM_PIC = 1 if W > 2500 or H > 2500: diff --git a/config.json b/config.json index 7814332..6f4cc7c 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,6 @@ { "OpenAI-API-Key" : "", "GPT-Model" : "text-davinci-003", - "Diffusion-Model" : "stabilityai/stable-diffusion-2-1" + "Diffusion-Model" : "stabilityai/stable-diffusion-2-1", + "DefaultDiffutionIterations" : 20 } \ No newline at end of file