Update app.py
Browse files
app.py
CHANGED
@@ -17,13 +17,13 @@ import subprocess
|
|
17 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
18 |
|
19 |
models = {
|
20 |
-
'J-LAB/Florence-Idesire': AutoModelForCausalLM.from_pretrained('J-LAB/Florence-Idesire', trust_remote_code=True).to("cuda").eval()
|
21 |
'J-LAB/Florence_2_L_FluxiAI_Product_Caption': AutoModelForCausalLM.from_pretrained('J-LAB/Florence_2_L_FluxiAI_Product_Caption', trust_remote_code=True).to("cuda").eval()
|
22 |
}
|
23 |
|
24 |
processors = {
|
25 |
'J-LAB/Florence-Idesire': AutoProcessor.from_pretrained('J-LAB/Florence-Idesire', trust_remote_code=True),
|
26 |
-
'J-LAB/Florence_2_L_FluxiAI_Product_Caption': AutoProcessor.from_pretrained('J-LAB/Florence_2_L_FluxiAI_Product_Caption', trust_remote_code=True)
|
27 |
}
|
28 |
|
29 |
|
|
|
17 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
18 |
|
19 |
models = {
|
20 |
+
'J-LAB/Florence-Idesire': AutoModelForCausalLM.from_pretrained('J-LAB/Florence-Idesire', trust_remote_code=True).to("cuda").eval(),
|
21 |
'J-LAB/Florence_2_L_FluxiAI_Product_Caption': AutoModelForCausalLM.from_pretrained('J-LAB/Florence_2_L_FluxiAI_Product_Caption', trust_remote_code=True).to("cuda").eval()
|
22 |
}
|
23 |
|
24 |
processors = {
|
25 |
'J-LAB/Florence-Idesire': AutoProcessor.from_pretrained('J-LAB/Florence-Idesire', trust_remote_code=True),
|
26 |
+
'J-LAB/Florence_2_L_FluxiAI_Product_Caption': AutoProcessor.from_pretrained('J-LAB/Florence_2_L_FluxiAI_Product_Caption', trust_remote_code=True)
|
27 |
}
|
28 |
|
29 |
|