Spaces:
Running
Running
Commit
·
1ff2d23
1
Parent(s):
98c7b0e
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def generate_ocr(Method,img):
|
|
162 |
print(commit_url)
|
163 |
|
164 |
|
165 |
-
Image.fromarray(
|
166 |
with open(DATA_FILE2, "wt") as csvfile:
|
167 |
writer = csv.writer(
|
168 |
csvfile, delimiter=" ", quotechar="|", quoting=csv.QUOTE_MINIMAL
|
|
|
162 |
print(commit_url)
|
163 |
|
164 |
|
165 |
+
Image.fromarray(img).save(DATA_FILE2 / f"{image_id}.png")
|
166 |
with open(DATA_FILE2, "wt") as csvfile:
|
167 |
writer = csv.writer(
|
168 |
csvfile, delimiter=" ", quotechar="|", quoting=csv.QUOTE_MINIMAL
|