mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Reorder imports
This commit is contained in:
parent
8fad84abc2
commit
4a724ed22f
@ -1,8 +1,9 @@
|
|||||||
|
import json
|
||||||
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from modules import shared
|
from modules import shared
|
||||||
from modules.text_generation import generate_reply, encode
|
from modules.text_generation import encode, generate_reply
|
||||||
import json
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'port': 5000,
|
'port': 5000,
|
||||||
@ -87,4 +88,4 @@ def run_server():
|
|||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
Thread(target=run_server, daemon=True).start()
|
Thread(target=run_server, daemon=True).start()
|
||||||
|
Loading…
Reference in New Issue
Block a user