Spaces:
Running
Running
Update main.py
Browse files
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
|