mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-24 11:28:19 +02:00
Don't use colorama
This commit is contained in:
parent
ef1bbda49c
commit
108e516b80
@ -33,7 +33,7 @@ filename_regex = re.compile('[^a-zA-Z0-9]')
|
|||||||
from . import Request, Response, Image as ResponseImage
|
from . import Request, Response, Image as ResponseImage
|
||||||
import base64
|
import base64
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from colorama import Fore
|
#from colorama import Fore
|
||||||
|
|
||||||
# local
|
# local
|
||||||
stop_processing = False
|
stop_processing = False
|
||||||
@ -464,7 +464,7 @@ def mk_img(req: Request):
|
|||||||
del x_samples
|
del x_samples
|
||||||
print("memory_final = ", torch.cuda.memory_allocated() / 1e6)
|
print("memory_final = ", torch.cuda.memory_allocated() / 1e6)
|
||||||
|
|
||||||
print(Fore.GREEN + 'Task completed')
|
print('Task completed')
|
||||||
|
|
||||||
if req.stream_progress_updates:
|
if req.stream_progress_updates:
|
||||||
yield json.dumps(res.json())
|
yield json.dumps(res.json())
|
||||||
|
Loading…
Reference in New Issue
Block a user