root commited on
Commit
9267c91
1 Parent(s): 58bc3a9

add img choice

Browse files
Files changed (1) hide show
  1. ui_functions.py +2 -2
ui_functions.py CHANGED
@@ -92,8 +92,8 @@ def copy_img_to_input(img, idx):
92
  idx_map = {
93
  "图片1(img1)":0,
94
  "图片2(img2)":1,
95
- "图片3(img4)":2,
96
- "图片4(img5)":3,
97
  }
98
  idx = idx_map[idx]
99
  image_data = re.sub('^data:image/.+;base64,', '', img[idx])
 
92
  idx_map = {
93
  "图片1(img1)":0,
94
  "图片2(img2)":1,
95
+ "图片3(img3)":2,
96
+ "图片4(img4)":3,
97
  }
98
  idx = idx_map[idx]
99
  image_data = re.sub('^data:image/.+;base64,', '', img[idx])