GSMEthesis commited on
Commit
e722ea4
·
verified ·
1 Parent(s): 3ba96ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -846,22 +846,22 @@ def show_explanation(exp_type):
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)
863
- st.markdown(f"<div style='direction: rtl; text-align: right; margin-right: 15px;'>• {explanations[exp_type][0]}</div>",
864
- unsafe_allow_html=True)
 
 
865
 
866
  def create_likert_question(question, key, scale_type="5point"):
867
  """نمایش سوال لیکرت با اسلایدر نقطه‌ای"""
 
846
 
847
  if exp_type != "control":
848
  if exp_type == "input":
849
+ st.markdown("<p class='explanation-title'>علت قیمت گذاری:</p>", unsafe_allow_html=True)
850
  st.markdown("""
851
  <div style="direction: rtl; text-align: right;">
 
852
  <span style="font-size: 0.9em; color: #666;">(تعداد علامت + نشان دهنده شدت اثر عامل بر قیمت است)</span>
853
  </div>
854
  """, unsafe_allow_html=True)
 
855
  for item in explanations.get(exp_type, []):
856
+ st.markdown(f"<p class='explanation-item'>• {item}</p>", unsafe_allow_html=True)
 
857
 
858
  elif exp_type == "counterfactual":
859
+ st.markdown("<p class='explanation-title'>علت قیمت گذاری:</p>", unsafe_allow_html=True)
860
+ for item in explanations.get(exp_type, []):
861
+ st.markdown(f"<p class='explanation-item'>• {item}</p>", unsafe_allow_html=True)
862
+
863
+
864
+
865
 
866
  def create_likert_question(question, key, scale_type="5point"):
867
  """نمایش سوال لیکرت با اسلایدر نقطه‌ای"""