Minsoo0707 commited on
Commit
665e69b
·
verified ·
1 Parent(s): 7221cb9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -120,7 +120,8 @@ model_name = "skt/A.X-4.0-VL-Light"
120
  model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.bfloat16).to(device='cuda')
121
  processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
122
 
123
- url = "https://huggingface.co/skt/A.X-4.0-VL-Light/blob/main/assets/image.png"
 
124
  # 이미지 출처: 국가유산포털 (https://www.heritage.go.kr/unisearch/images/national_treasure/thumb/2021042017434700.JPG)
125
  response = requests.get(url)
126
  response.raise_for_status()
@@ -183,7 +184,8 @@ model_name = "skt/A.X-4.0-VL-Light"
183
  model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.bfloat16).to(device='cuda')
184
  processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
185
 
186
- url = "https://huggingface.co/skt/A.X-4.0-VL-Light/blob/main/assets/document.png"
 
187
  response = requests.get(url)
188
  response.raise_for_status()
189
  image = Image.open(BytesIO(response.content))
 
120
  model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.bfloat16).to(device='cuda')
121
  processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
122
 
123
+ url = "https://huggingface.co/skt/A.X-4.0-VL-Light/resolve/main/assets/image.png"
124
+
125
  # 이미지 출처: 국가유산포털 (https://www.heritage.go.kr/unisearch/images/national_treasure/thumb/2021042017434700.JPG)
126
  response = requests.get(url)
127
  response.raise_for_status()
 
184
  model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.bfloat16).to(device='cuda')
185
  processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
186
 
187
+ url = "https://huggingface.co/skt/A.X-4.0-VL-Light/resolve/main/assets/document.png"
188
+
189
  response = requests.get(url)
190
  response.raise_for_status()
191
  image = Image.open(BytesIO(response.content))