Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ async def request_gpt4o_completion(image_id: str, user_credit: int):
|
|
| 176 |
base64_image = base64.b64encode(file_content).decode('utf-8')
|
| 177 |
|
| 178 |
# Step 3: Get text data from the image using Google Cloud Vision
|
| 179 |
-
|
| 180 |
client = vision.ImageAnnotatorClient()
|
| 181 |
image = vision.Image(content=file_content)
|
| 182 |
response = client.text_detection(image=image)
|
|
|
|
| 176 |
base64_image = base64.b64encode(file_content).decode('utf-8')
|
| 177 |
|
| 178 |
# Step 3: Get text data from the image using Google Cloud Vision
|
| 179 |
+
logging.info("Initiating text detection with Google Cloud Vision")
|
| 180 |
client = vision.ImageAnnotatorClient()
|
| 181 |
image = vision.Image(content=file_content)
|
| 182 |
response = client.text_detection(image=image)
|