Spaces:
Sleeping
Sleeping
ahmedJaafari
commited on
Commit
·
d5800f1
1
Parent(s):
463d7c4
Update app.py
Browse files
app.py
CHANGED
@@ -97,11 +97,11 @@ st.markdown("👉 **Choose request type / اختر نوع الطلب**")
|
|
97 |
col1, col2, col3, col4, col5 = st.columns([2, 3, 2, 3, 4])
|
98 |
cols = [col1, col2, col3, col4, col5]
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
arabic_options = [e.split("/")[1] for e in selected_options]
|
106 |
df['id'] = df.index
|
107 |
filtered_df = df[df['ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)'].isin(arabic_options)]
|
|
|
97 |
col1, col2, col3, col4, col5 = st.columns([2, 3, 2, 3, 4])
|
98 |
cols = [col1, col2, col3, col4, col5]
|
99 |
|
100 |
+
for i, option in enumerate(options):
|
101 |
+
checked = cols[i].checkbox(headers_mapping[option], value=True)
|
102 |
+
if checked:
|
103 |
+
selected_options.append(headers_mapping[option])
|
104 |
+
|
105 |
arabic_options = [e.split("/")[1] for e in selected_options]
|
106 |
df['id'] = df.index
|
107 |
filtered_df = df[df['ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)'].isin(arabic_options)]
|