Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import io
|
|
6 |
from PIL import Image
|
7 |
import subprocess
|
8 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
9 |
-
|
10 |
model_id = 'J-LAB/Florence-vl3'
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to("cuda").eval()
|
12 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
|
|
6 |
from PIL import Image
|
7 |
import subprocess
|
8 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
9 |
+
#
|
10 |
model_id = 'J-LAB/Florence-vl3'
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to("cuda").eval()
|
12 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|