From 4136d203eff873a889eef058cb6f63b3ff1dab70 Mon Sep 17 00:00:00 2001 From: yabi90 Date: Sun, 17 Nov 2024 23:49:07 +0000 Subject: [PATCH] fix: Redundant Imports for torch and PIL.Image in gradio_demo.py --- gradio_demo.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gradio_demo.py b/gradio_demo.py index 14dd6d0..cb61fcf 100644 --- a/gradio_demo.py +++ b/gradio_demo.py @@ -1,12 +1,7 @@ from typing import Optional - import gradio as gr import numpy as np -import torch -from PIL import Image import io - - import base64, os from utils import check_ocr_box, get_yolo_model, get_caption_model_processor, get_som_labeled_img import torch