correctly passed Lock() from threading
Browse files111 unmodified lines112113114115116117118111 unmodified linesgenerate_kwargs["do_sample"] = False# Use a lock object to synchronize access to the llama_modellock = threading.lock()# # Place the generation in a thread so we can access it.# # place the function as target and place the kwargs next as the kwargs111 unmodified lines112113114115116117118111 unmodified linesgenerate_kwargs["do_sample"] = False# Use a lock object to synchronize access to the llama_modellock = threading.Lock()# # Place the generation in a thread so we can access it.# # place the function as target and place the kwargs next as the kwargs
app.py+1-1