ahmedJaafari commited on
Commit
463d7c4
1 Parent(s): 4e2fede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -47
app.py CHANGED
@@ -25,48 +25,7 @@ auto_refresh = st.sidebar.checkbox("Auto Refresh?", st.session_state.auto_refres
25
  if auto_refresh:
26
  number = st.sidebar.number_input("Refresh rate in seconds", value=st.session_state.sleep_time)
27
  st.session_state.sleep_time = number
28
-
29
- #Logo
30
- st.markdown(
31
- """
32
- <div style="text-align: center;">
33
- <img src="https://storage.googleapis.com/storage-annarabic/Nt3awnou(1).png" width="200" height="200">
34
- </div>
35
- """,
36
- unsafe_allow_html=True,
37
- )
38
-
39
- st.title("Nt3awnou نتعاونو ")
40
-
41
- rtl_text = """
42
-
43
- """
44
- st.markdown(
45
- """
46
- <div style="text-align: right;">
47
- نتعاونو هي منصة تعاونية لمساعدة الأفراد المتضررين من الزلزال الأخير في المغرب. مهمتنا هي تسهيل تقديم المساعدة في الوقت المناسب و بفاعلية و تنظيم لجميع المتضررين.
48
- كيفاش؟ كنعاونو الناس لي محتاجين للمساعدة إعلمونا بمكانهم و نوع المساعدة لي محتاجين ليها سواء عن طريق ملأ الاستمارة أو عن طريق إرسال تسجيل صوتي عبر واتساب إلى رقم مخصص. بعد معالجة هاد المعلومات، كنجمعوهم فخريطة كتمكن الجمعيات و المتطوعين من تنظيم و استهداف تدخلاتهم بدقة باش توصل المساعدة للناس لي محتاجين في وقت أسرع. و كل جمعية قامت باللازم في منطقة معينة تقدر تعلمنا عن طريق ملأ استمارة مخصصة لهاد الأمر. هاد المعلومات كذلك كتضاف للخريطة باش باقي المتطوعين يتاجهو لمناطق أخرى.
49
-
50
- ✉️ nt3awnou@annarabic.com المتطوعين ليبغاو يعاونوا يقدرو يتصلوا معنا عبر البريد
51
- 📝 https://forms.gle/nZNCUVog9ka2Vdqu6 : ساعدونا نبلغو الناس ليمحتاجين فهاد الاستمارة
52
- </div>
53
- """,
54
- unsafe_allow_html=True,
55
- )
56
-
57
-
58
- st.markdown("""
59
- <div style="text-align: left;">
60
- Nt3awnou نتعاونو is a collaborative platform dedicated to aiding individuals impacted by the recent earthquake in Morocco. Our core mission is to streamline and coordinate timely assistance for everyone affected.
61
- How do we achieve this? We assist those in need by allowing them to communicate their location and the specific aid they require, either by completing a form or sending a voice message via WhatsApp to a designated number. Once we receive and process this information, it can be viewed in our dashboard, which allows NGOs and volunteers to organize and precisely target their interventions, ensuring swift assistance reaches those in need. Any organization that has taken initiative in a particular area can notify us by completing a dedicated form. This data is also incorporated into the dashboard.
62
-
63
- ✉️ You can contact us via email at nt3awnou@annarabic.com <br>
64
- 📝 Help us report more people in need by filling this form: https://forms.gle/nZNCUVog9ka2Vdqu6
65
- </div>
66
- """,
67
- unsafe_allow_html=True,
68
- )
69
-
70
  session = requests.Session()
71
  @st.cache_data(persist=True)
72
  def parse_latlng_from_link(url):
@@ -138,11 +97,11 @@ st.markdown("👉 **Choose request type / اختر نوع الطلب**")
138
  col1, col2, col3, col4, col5 = st.columns([2, 3, 2, 3, 4])
139
  cols = [col1, col2, col3, col4, col5]
140
 
141
- for i, option in enumerate(options):
142
- checked = cols[i].checkbox(headers_mapping[option], value=True)
143
- if checked:
144
- selected_options.append(headers_mapping[option])
145
-
146
  arabic_options = [e.split("/")[1] for e in selected_options]
147
  df['id'] = df.index
148
  filtered_df = df[df['ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)'].isin(arabic_options)]
 
25
  if auto_refresh:
26
  number = st.sidebar.number_input("Refresh rate in seconds", value=st.session_state.sleep_time)
27
  st.session_state.sleep_time = number
28
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  session = requests.Session()
30
  @st.cache_data(persist=True)
31
  def parse_latlng_from_link(url):
 
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)]