oddadmix commited on
Commit
26e9d4e
·
verified ·
1 Parent(s): 69fd697

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)