felix.wf commited on
Commit
f25cf7a
·
1 Parent(s): 7e8df8d

refine page

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ if file_name is not None:
33
  # 打印结果
34
  print(persons)
35
  st.text(persons)
36
- st.text(f"Number of persons detected: {len(persons)}")
37
 
38
  # 假设有一张原始图片,加载图片并截取出每个 "person" 的部分
39
  original_image = face_image
@@ -53,7 +53,7 @@ if file_name is not None:
53
  num_rows = (num_images + num_cols - 1) // num_cols # Ceiling division
54
 
55
  # Create a new canvas to stitch all person images in a grid with 3 columns
56
- fig, axes = plt.subplots(num_rows, num_cols, figsize=(15, 5 * num_rows))
57
 
58
  # Flatten the axes array for easy iteration
59
  axes = axes.flatten()
@@ -85,7 +85,7 @@ if file_name is not None:
85
  st.subheader("Emotions by model: dima806/facial_emotions_image_detection")
86
  st.text(output_list_emotions)
87
  print(output_list_emotions_refined)
88
- st.subheader("Emotions by model: felixwf/fine_tuned_face_emotion_model")
89
  st.text(output_list_emotions_refined)
90
 
91
 
 
33
  # 打印结果
34
  print(persons)
35
  st.text(persons)
36
+ st.subheader(f"Number of persons detected: {len(persons)}")
37
 
38
  # 假设有一张原始图片,加载图片并截取出每个 "person" 的部分
39
  original_image = face_image
 
53
  num_rows = (num_images + num_cols - 1) // num_cols # Ceiling division
54
 
55
  # Create a new canvas to stitch all person images in a grid with 3 columns
56
+ fig, axes = plt.subplots(num_rows, num_cols, figsize=(15, 2 * num_rows))
57
 
58
  # Flatten the axes array for easy iteration
59
  axes = axes.flatten()
 
85
  st.subheader("Emotions by model: dima806/facial_emotions_image_detection")
86
  st.text(output_list_emotions)
87
  print(output_list_emotions_refined)
88
+ st.subheader("Actions by model: felixwf/fine_tuned_face_emotion_model")
89
  st.text(output_list_emotions_refined)
90
 
91