Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -971,15 +971,10 @@ if st.session_state.prediction_data is not None:
|
|
| 971 |
|
| 972 |
# 4️⃣ 轉換機率篩選
|
| 973 |
if enable_conversion_filter:
|
| 974 |
-
|
| 975 |
-
(filtered_df[
|
| 976 |
-
(filtered_df[
|
| 977 |
-
|
| 978 |
-
filtered_df = filtered_df[conversion_mask]
|
| 979 |
-
filter_conditions.append(
|
| 980 |
-
f"網路投保機率 ≥ {online_thresh} 或 O2O 預約機率 ≥ {o2o_thresh}"
|
| 981 |
-
)
|
| 982 |
-
|
| 983 |
|
| 984 |
# ✅ 條件摘要顯示
|
| 985 |
st.markdown("#### 您的篩選條件為:")
|
|
|
|
| 971 |
|
| 972 |
# 4️⃣ 轉換機率篩選
|
| 973 |
if enable_conversion_filter:
|
| 974 |
+
filtered_df = filtered_df[
|
| 975 |
+
(filtered_df["Online_conversion_prob"] >= min_online_conv)
|
| 976 |
+
| (filtered_df["O2O_reservation_prob"] >= min_o2o_conv)
|
| 977 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 978 |
|
| 979 |
# ✅ 條件摘要顯示
|
| 980 |
st.markdown("#### 您的篩選條件為:")
|