sandz7 commited on
Commit
d5cee6d
Β·
1 Parent(s): 39598d2

correctly passed Lock() from threading

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def llama_generation(input_text: str,
112
  generate_kwargs["do_sample"] = False
113
 
114
  # Use a lock object to synchronize access to the llama_model
115
- lock = threading.lock()
116
 
117
  # # Place the generation in a thread so we can access it.
118
  # # place the function as target and place the kwargs next as the kwargs
 
112
  generate_kwargs["do_sample"] = False
113
 
114
  # Use a lock object to synchronize access to the llama_model
115
+ lock = threading.Lock()
116
 
117
  # # Place the generation in a thread so we can access it.
118
  # # place the function as target and place the kwargs next as the kwargs