From 4a724ed22fc8942677f44df39674b571450ea51c Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:53:56 -0300 Subject: [PATCH] Reorder imports --- extensions/api/script.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/api/script.py b/extensions/api/script.py index bbd8551a..7783594c 100644 --- a/extensions/api/script.py +++ b/extensions/api/script.py @@ -1,8 +1,9 @@ +import json from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from threading import Thread + from modules import shared -from modules.text_generation import generate_reply, encode -import json +from modules.text_generation import encode, generate_reply params = { 'port': 5000, @@ -87,4 +88,4 @@ def run_server(): server.serve_forever() def setup(): - Thread(target=run_server, daemon=True).start() \ No newline at end of file + Thread(target=run_server, daemon=True).start()