jinfengxie commited on
Commit
de3f3cc
·
verified ·
1 Parent(s): 002e947

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -434,7 +434,7 @@ def process_image(image_path):
434
  # 计算每个类别的百分比
435
  counts_df['百分比'] = (counts_df['计数'] / total_count * 100).round(2)
436
  # 重新命名 DataFrame 为 percentage_df 以清楚表达其内容
437
- percentage_df = counts_df.rename(columns={'计数': '数量', '百分比': '占比 (%)'})
438
 
439
  slice_size = 64
440
  exclusion_list = [38]
@@ -454,8 +454,8 @@ iface = gr.Interface(
454
  gr.Image(type='pil', label='Texture Slices'),
455
  gr.DataFrame()
456
  ],
457
- title="Image Processing for Mask Visualization and Color Extraction",
458
- description="Upload an image to extract color masks, class counts, and color palettes."
459
  )
460
 
461
  iface.launch()
 
434
  # 计算每个类别的百分比
435
  counts_df['百分比'] = (counts_df['计数'] / total_count * 100).round(2)
436
  # 重新命名 DataFrame 为 percentage_df 以清楚表达其内容
437
+ percentage_df = counts_df.rename(columns={'计数': 'pixels', '百分比': 'percentage (%)'})
438
 
439
  slice_size = 64
440
  exclusion_list = [38]
 
454
  gr.Image(type='pil', label='Texture Slices'),
455
  gr.DataFrame()
456
  ],
457
+ title="Building Facade Material Segmentation",
458
+ description="Upload an image to segment material masks, and get color palettes."
459
  )
460
 
461
  iface.launch()