Update image
Browse files
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/
|
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")
|