GSMEthesis commited on
Commit
47613fd
·
verified ·
1 Parent(s): 18a10e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -682,7 +682,6 @@ def custom_likert_slider(question, key, points=7):
682
  labels = options.get(points)
683
  slider_id = f"slider_{key}"
684
 
685
- # ساخت HTML برای اسلایدر + ارسال مقدار با postMessage
686
  html = f"""
687
  <div id="container_{key}" style="direction: rtl; font-family: 'B Nazanin'; margin-bottom: 30px;">
688
  <label style="font-size: 16px; font-weight: bold;">{question}</label>
@@ -697,8 +696,8 @@ def custom_likert_slider(question, key, points=7):
697
  </div>
698
  """
699
 
700
- # مقدار برگشتی (از JS)
701
- selected_value = components.html(html, height=150, key=f"component_{key}")
702
 
703
  return selected_value
704
 
 
682
  labels = options.get(points)
683
  slider_id = f"slider_{key}"
684
 
 
685
  html = f"""
686
  <div id="container_{key}" style="direction: rtl; font-family: 'B Nazanin'; margin-bottom: 30px;">
687
  <label style="font-size: 16px; font-weight: bold;">{question}</label>
 
696
  </div>
697
  """
698
 
699
+ # حذف key چون پشتیبانی نمی‌شود
700
+ selected_value = components.html(html, height=150)
701
 
702
  return selected_value
703