J-LAB commited on
Commit
afe3c68
·
verified ·
1 Parent(s): 110cd3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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