Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ def handler_change_context_size():
|
|
139 |
stop_generation = True
|
140 |
|
141 |
new_size = int(request.args.get('size', CONTEXT_SIZE))
|
142 |
-
init_model(new_size,
|
143 |
|
144 |
return Response('Size changed', content_type='text/plain')
|
145 |
|
|
|
139 |
stop_generation = True
|
140 |
|
141 |
new_size = int(request.args.get('size', CONTEXT_SIZE))
|
142 |
+
init_model(new_size, ENABLE_GPU, GPU_LAYERS)
|
143 |
|
144 |
return Response('Size changed', content_type='text/plain')
|
145 |
|