File tree 1 file changed +6
-6
lines changed
streamlit_image_comparison
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ def pillow_local_file_to_base64(image: Image.Image, temp_dir: str):
149
149
return base64_src
150
150
151
151
def image_comparison (
152
- img1 : str ,
153
- img2 : str ,
152
+ img1 : Union [ Image . Image , str , np . ndarray ] ,
153
+ img2 : Union [ Image . Image , str , np . ndarray ] ,
154
154
label1 : str = "1" ,
155
155
label2 : str = "2" ,
156
156
width : int = 704 ,
@@ -164,10 +164,10 @@ def image_comparison(
164
164
165
165
Parameters
166
166
----------
167
- img1: str
168
- Path to the first image.
169
- img2: str
170
- Path to the second image.
167
+ img1: str, PIL Image, or numpy array
168
+ Data for the first image.
169
+ img2: str, PIL Image, or numpy array
170
+ Data for the second image.
171
171
label1: str, optional
172
172
Label for the first image. Default is "1".
173
173
label2: str, optional
You can’t perform that action at this time.
0 commit comments