Abhinav-hf commited on
Commit
112e3ad
·
verified ·
1 Parent(s): f8ed977

Update Backend/OCR/Dynamic/VideoOCR.py

Browse files
Files changed (1) hide show
  1. Backend/OCR/Dynamic/VideoOCR.py +2 -3
Backend/OCR/Dynamic/VideoOCR.py CHANGED
@@ -96,10 +96,9 @@ import google.generativeai as genai
96
  import pandas as pd
97
  # from google.colab import userdata
98
 
99
- use_gpu = paddle.device.is_compiled_with_cuda() and paddle.device.get_device().startswith("gpu")
100
-
101
  # Define paths
102
- ocr = PaddleOCR(use_angle_cls=True, lang='en', use_gpu=use_gpu)
103
 
104
  # GOOGLE_API_KEY = os.getenv("GEMINI_API")
105
 
 
96
  import pandas as pd
97
  # from google.colab import userdata
98
 
99
+ # use_gpu = paddle.device.is_compiled_with_cuda() and paddle.device.get_device().startswith("gpu")
 
100
  # Define paths
101
+ ocr = PaddleOCR(use_angle_cls=True, lang='en')
102
 
103
  # GOOGLE_API_KEY = os.getenv("GEMINI_API")
104