correctly passed Lock() from threading
Browse files
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.
|
| 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
|