В терминале VSCode выдает ошибку, помогите исправить

В терминале VSCode выдает теперь такую ошибку . Помогите исправить.

PS C:\Users\valer\Sozdanie_pervogo_bota_s_OD> python LESSON.py
Бот запущен...
command python C:\Users\valer\Sozdanie_pervogo_bota_s_OD\yolov5/detect.py --weights YOLOv5x.pt --source IMAGES
C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\subprocess.py:1016: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, 'rb', bufsize)
detect: weights=['YOLOv5x.pt'], source=IMAGES, data=YOLOv5\data\coco128.yaml, imgsz=[640, 640], conf_thres=0.25, iou_thres=0.45, max_det=1000, device=, view_img=False, save_txt=False, save_csv=False, save_conf=False, save_crop=False, nosave=False, classes=None, agnostic_nms=False, augment=False, visualize=False, update=False, project=YOLOv5\runs\detect, name=exp, exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, half=False, dnn=False, vid_stride=1
YOLOv5  v7.0-318-gc0380fd8 Python-3.12.3 torch-2.3.0+cpu CPU

Fusing layers...
YOLOv5x summary: 444 layers, 86705005 parameters, 0 gradients, 205.5 GFLOPs
image 1/1 C:\Users\valer\Sozdanie_pervogo_bota_s_OD\IMAGES\file_0.jpg: 448x640 10 persons, 14 cars, 1 fire hydrant, 1 backpack, 2 handbags, 2707.3ms
Speed: 9.8ms pre-process, 2707.3ms inference, 37.1ms NMS per image at shape (1, 3, 640, 640)
Results saved to YOLOv5\runs\detect\exp2
No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\ext\_application.py", line 1148, in __create_task_callback     
    return await coroutine  # type: ignore[misc]
           ^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\ext\_handlers\basehandler.py", line 157, in handle_update      
    return await self.callback(update, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\Sozdanie_pervogo_bota_s_OD\LESSON.py", line 67, in detection
    await update.message.reply_photo(f"{WORK_DIR}/YOLO/YOLOv5/RUNS/DETECT/EXP/{image_name}") # отправляем пользователю результат изображение
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_message.py", line 1934, in reply_photo
    return await self.get_bot().send_photo(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\ext\_extbot.py", line 2865, in send_photo
    return await super().send_photo(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_bot.py", line 541, in decorator
    result = await func(self, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_bot.py", line 1378, in send_photo
    return await self._send_message(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\ext\_extbot.py", line 581, in _send_message
    result = await super()._send_message(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_bot.py", line 735, in _send_message
    result = await self._post(
             ^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_bot.py", line 629, in _post
    return await self._do_post(
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\ext\_extbot.py", line 347, in _do_post
    return await super()._do_post(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\_bot.py", line 657, in _do_post
    return await request.post(
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\request\_baserequest.py", line 200, in post
    result = await self._request_wrapper(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\valer\AppData\Local\Programs\Python\Python312\Lib\site-packages\telegram\request\_baserequest.py", line 379, in _request_wrapper        
    raise BadRequest(message)
telegram.error.BadRequest: Invalid file http url specified: wrong port number specified in the url

Ответы (0 шт):