From a03cf88f695a0d8f5489c930e9368b580061e503 Mon Sep 17 00:00:00 2001 From: xiongxianfei Date: Sun, 31 Aug 2025 11:07:08 +0000 Subject: [PATCH 1/2] Resolve this issue(#297) by installing the dependency: pip install opencv-python-headless --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 8698f1bc..da0c14f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ matplotlib opencv-python torch torchvision +opencv-python-headless \ No newline at end of file From 285efa367755e4f0dffd36c100b41521f6fe8a48 Mon Sep 17 00:00:00 2001 From: xiongxianfei Date: Sun, 31 Aug 2025 11:15:18 +0000 Subject: [PATCH 2/2] Issue #296 has been resolved by upgrading the Gradio library to the latest version. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index da0c14f6..c8d8aa90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ gradio_imageslider -gradio==4.29.0 +gradio matplotlib opencv-python torch