Zul Ikram Musaddik Rayat commited on
Commit
61f2980
·
1 Parent(s): 43f9d56

Added url sanitization and encoding

Browse files
Files changed (1) hide show
  1. app/utils/mark.py +2 -1
app/utils/mark.py CHANGED
@@ -19,7 +19,8 @@ def make_safe_url(url: str) -> str:
19
 
20
 
21
  async def get_url_image(url: str) -> cv2.typing.MatLike:
22
- url = make_safe_url(url)
 
23
  loop = asyncio.get_event_loop()
24
  req = await loop.run_in_executor(None, requests.get, url)
25
  arr = np.asarray(bytearray(req.content), dtype=np.uint8)
 
19
 
20
 
21
  async def get_url_image(url: str) -> cv2.typing.MatLike:
22
+ # url = make_safe_url(url)
23
+ print(url)
24
  loop = asyncio.get_event_loop()
25
  req = await loop.run_in_executor(None, requests.get, url)
26
  arr = np.asarray(bytearray(req.content), dtype=np.uint8)