Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -834,11 +834,10 @@ def show_explanation(exp_type):
|
|
| 834 |
"""نمایش توضیحات قیمت"""
|
| 835 |
explanations = {
|
| 836 |
"input": [
|
| 837 |
-
"
|
| 838 |
-
"(+)
|
| 839 |
-
"(+)
|
| 840 |
-
"(+)
|
| 841 |
-
"(++) شرایط جوی: هوای بارانی"
|
| 842 |
],
|
| 843 |
"counterfactual": [
|
| 844 |
"اگر این سفر را 1 ساعت دیرتر درخواست کنید، به دلیل سطح تقاضای کمتر، رانندگان فعال بیشتر، زمان بهتر روز و شرایط جوی بهتر، احتمالاً قیمت حدوداً 40٪ کمتر (120 هزار تومان) خواهد بود.",
|
|
@@ -847,17 +846,17 @@ def show_explanation(exp_type):
|
|
| 847 |
|
| 848 |
if exp_type != "control":
|
| 849 |
if exp_type == "input":
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 856 |
|
| 857 |
-
for item in explanations.get(exp_type, []):
|
| 858 |
-
st.markdown(f"<div style='direction: rtl; text-align: right; margin-right: 15px;'>• {item}</div>",
|
| 859 |
-
unsafe_allow_html=True)
|
| 860 |
-
|
| 861 |
elif exp_type == "counterfactual":
|
| 862 |
st.markdown("<div style='direction: rtl; text-align: right; font-weight: bold;'>علت قیمت گذاری:</div>",
|
| 863 |
unsafe_allow_html=True)
|
|
|
|
| 834 |
"""نمایش توضیحات قیمت"""
|
| 835 |
explanations = {
|
| 836 |
"input": [
|
| 837 |
+
" (+)سطح تقاضا در منطقه: زیاد",
|
| 838 |
+
" (+)تعداد رانندگان فعال: کم",
|
| 839 |
+
" (+)زمان روز: ساعت اوج ترافیک",
|
| 840 |
+
" (++)شرایط جوی: هوای بارانی"
|
|
|
|
| 841 |
],
|
| 842 |
"counterfactual": [
|
| 843 |
"اگر این سفر را 1 ساعت دیرتر درخواست کنید، به دلیل سطح تقاضای کمتر، رانندگان فعال بیشتر، زمان بهتر روز و شرایط جوی بهتر، احتمالاً قیمت حدوداً 40٪ کمتر (120 هزار تومان) خواهد بود.",
|
|
|
|
| 846 |
|
| 847 |
if exp_type != "control":
|
| 848 |
if exp_type == "input":
|
| 849 |
+
st.markdown("""
|
| 850 |
+
<div style="direction: rtl; text-align: right;">
|
| 851 |
+
<span style="font-weight: bold;">علت قیمت گذاری</span>
|
| 852 |
+
<span style="font-size: 0.9em; color: #666;">(تعداد علامت + نشان دهنده شدت اثر عامل بر قیمت است)</span>
|
| 853 |
+
</div>
|
| 854 |
+
""", unsafe_allow_html=True)
|
| 855 |
+
|
| 856 |
+
for item in explanations.get(exp_type, []):
|
| 857 |
+
st.markdown(f"<div style='direction: rtl; text-align: right; margin-right: 15px;'>• {item}</div>",
|
| 858 |
+
unsafe_allow_html=True)
|
| 859 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 860 |
elif exp_type == "counterfactual":
|
| 861 |
st.markdown("<div style='direction: rtl; text-align: right; font-weight: bold;'>علت قیمت گذاری:</div>",
|
| 862 |
unsafe_allow_html=True)
|