generated from thinkode/modelRepository
9 lines
225 B
Python
9 lines
225 B
Python
|
|
import json
|
||
|
|
|
||
|
|
# Send the status to the console for interpretation
|
||
|
|
def log_step(step, progress, message):
|
||
|
|
print(json.dumps({
|
||
|
|
"step": step,
|
||
|
|
"progress": progress,
|
||
|
|
"message": message
|
||
|
|
}), flush=True)
|