ECOFRI commited on
Commit
341800b
1 Parent(s): c7ca54d

Upload model

Browse files
Files changed (1) hide show
  1. CXR_LLAVA_HF.py +1 -1
CXR_LLAVA_HF.py CHANGED
@@ -599,7 +599,7 @@ class CXRLLAVAModel(PreTrainedModel):
599
  streamer = TextIteratorStreamer(self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=15)
600
 
601
  if np.array(image).max()>255:
602
- raise Exception("WARNING. 16-bit image is not supported.")
603
 
604
  image = image.convert('L') # convert to grayscale
605
  image = np.array(image)
 
599
  streamer = TextIteratorStreamer(self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=15)
600
 
601
  if np.array(image).max()>255:
602
+ raise Exception("16-bit image is not supported.")
603
 
604
  image = image.convert('L') # convert to grayscale
605
  image = np.array(image)