GSMEthesis commited on
Commit
8626f4b
·
verified ·
1 Parent(s): 1fd1c1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -772,6 +772,10 @@ body, .stApp {
772
  """, unsafe_allow_html=True)
773
 
774
  # ========== توابع اصلی ==========
 
 
 
 
775
  def enhanced_likert_scale(question_data):
776
  """لیکرت اسکیل کاملاً تعاملی با هماهنگی کامل بین نقاط و عدد"""
777
  question = question_data["question"]
@@ -890,8 +894,8 @@ def enhanced_likert_scale(question_data):
890
  </html>
891
  """
892
 
893
- # نمایش کامپوننت
894
- html(scale_html, height=120)
895
 
896
  # ایجاد input عددی هماهنگ
897
  col1, col2 = st.columns([3, 1])
 
772
  """, unsafe_allow_html=True)
773
 
774
  # ========== توابع اصلی ==========
775
+ import streamlit as st
776
+ from streamlit.components.v1 import html as components_html
777
+ import json
778
+
779
  def enhanced_likert_scale(question_data):
780
  """لیکرت اسکیل کاملاً تعاملی با هماهنگی کامل بین نقاط و عدد"""
781
  question = question_data["question"]
 
894
  </html>
895
  """
896
 
897
+ # نمایش کامپوننت با استفاده از components.html
898
+ components_html(scale_html, height=120)
899
 
900
  # ایجاد input عددی هماهنگ
901
  col1, col2 = st.columns([3, 1])