Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ print("device", device)
|
|
24 |
print("PyTorch version:", torch.__version__)
|
25 |
print("CUDA version:", torch.version.cuda)
|
26 |
|
27 |
-
import os
|
28 |
os.environ['CUDA_VISIBLE_DEVICE']='0'
|
|
|
29 |
|
30 |
subprocess.call(['python3', 'src/demo/seed_llama_flask.py', '--image_transform', 'configs/processer/qwen_448_transform.yaml', \
|
31 |
'--tokenizer', 'configs/tokenizer/clm_llama_tokenizer_224loc_anyres.yaml', \
|
|
|
24 |
print("PyTorch version:", torch.__version__)
|
25 |
print("CUDA version:", torch.version.cuda)
|
26 |
|
|
|
27 |
os.environ['CUDA_VISIBLE_DEVICE']='0'
|
28 |
+
os.environ["MKL_THREADING_LAYER"] = "GNU"
|
29 |
|
30 |
subprocess.call(['python3', 'src/demo/seed_llama_flask.py', '--image_transform', 'configs/processer/qwen_448_transform.yaml', \
|
31 |
'--tokenizer', 'configs/tokenizer/clm_llama_tokenizer_224loc_anyres.yaml', \
|