mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 09:40:20 +01:00
Add credits
This commit is contained in:
parent
95d04d6a8d
commit
057b1b2978
@ -51,6 +51,8 @@ class Iteratorize:
|
|||||||
"""
|
"""
|
||||||
Transforms a function that takes a callback
|
Transforms a function that takes a callback
|
||||||
into a lazy iterator (generator).
|
into a lazy iterator (generator).
|
||||||
|
|
||||||
|
Adapted from: https://stackoverflow.com/a/9969000
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, func, kwargs={}, callback=None):
|
def __init__(self, func, kwargs={}, callback=None):
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
# Copied from https://stackoverflow.com/a/1336640
|
||||||
# encoding: utf-8
|
|
||||||
import logging
|
|
||||||
# now we patch Python code to add color support to logging.StreamHandler
|
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
def add_coloring_to_emit_windows(fn):
|
def add_coloring_to_emit_windows(fn):
|
||||||
# add methods we need to the class
|
# add methods we need to the class
|
||||||
|
Loading…
Reference in New Issue
Block a user