m8chaa commited on
Commit
4690bf9
·
verified ·
1 Parent(s): 3d34ce4

Update app.py

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