nielsr HF staff commited on
Commit
744dbae
1 Parent(s): ed578e3

Update image

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-str")
7
  model = VisionEncoderDecoderModel.from_pretrained("microsoft/trocr-base-str")
8
 
9
  # load image examples
10
- urls = ['https://raw.githubusercontent.com/ku21fan/STR-Fewer-Labels/main/demo_image/1.png', 'https://raw.githubusercontent.com/ku21fan/STR-Fewer-Labels/main/demo_image/9.jpg', 'https://raw.githubusercontent.com/HCIILAB/Scene-Text-Recognition-Recommendations/main/Dataset_images/ArT2.jpg']
11
  for idx, url in enumerate(urls):
12
  image = Image.open(requests.get(url, stream=True).raw)
13
  image.save(f"image_{idx}.png")
 
7
  model = VisionEncoderDecoderModel.from_pretrained("microsoft/trocr-base-str")
8
 
9
  # load image examples
10
+ urls = ['https://raw.githubusercontent.com/ku21fan/STR-Fewer-Labels/main/demo_image/1.png', 'https://raw.githubusercontent.com/HCIILAB/Scene-Text-Recognition-Recommendations/main/Dataset_images/LSVT1.jpg', 'https://raw.githubusercontent.com/HCIILAB/Scene-Text-Recognition-Recommendations/main/Dataset_images/ArT2.jpg']
11
  for idx, url in enumerate(urls):
12
  image = Image.open(requests.get(url, stream=True).raw)
13
  image.save(f"image_{idx}.png")