Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ max_tokens = 2000
|
|
| 19 |
|
| 20 |
@spaces.GPU
|
| 21 |
def perform_ocr(image):
|
| 22 |
-
src = uuid.uuid4() + ".png"
|
| 23 |
|
| 24 |
prompt = "Below is the image of one page of a document, as well as some raw textual content that was previously extracted for it. Just return the plain text representation of this document as if you were reading it naturally. Do not hallucinate."
|
| 25 |
image.save(src)
|
|
|
|
| 19 |
|
| 20 |
@spaces.GPU
|
| 21 |
def perform_ocr(image):
|
| 22 |
+
src = str(uuid.uuid4()) + ".png"
|
| 23 |
|
| 24 |
prompt = "Below is the image of one page of a document, as well as some raw textual content that was previously extracted for it. Just return the plain text representation of this document as if you were reading it naturally. Do not hallucinate."
|
| 25 |
image.save(src)
|