Hammad712 commited on
Commit
a868e74
·
verified ·
1 Parent(s): cfa0911

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -37,8 +37,7 @@ def extract_text_from_image(img):
37
  response = client.models.generate_content(
38
  model="gemini-2.0-flash",
39
  contents=[
40
- "Extract the text from the image. Do not write anything except the extracted content",
41
- img,
42
  ]
43
  )
44
  return response.text
 
37
  response = client.models.generate_content(
38
  model="gemini-2.0-flash",
39
  contents=[
40
+ "Extract the text from the image. Preserve the original formatting exactly as it appears, including line breaks, spacing, and indentation. Do not write anything except the extracted content.", img,
 
41
  ]
42
  )
43
  return response.text