nouamanetazi HF staff commited on
Commit
a6c3087
1 Parent(s): 7e1674f

add instagram links

Browse files
Files changed (2) hide show
  1. app.py +23 -22
  2. src/text_content.py +5 -3
app.py CHANGED
@@ -198,29 +198,30 @@ def display_dataframe(df, drop_cols, data_url, search_id=True, status=False, for
198
 
199
  def id_review_submission():
200
  """Id review submission form"""
201
- st.subheader("🔍 Review of requests")
202
- st.markdown(REVIEW_TEXT)
 
203
 
204
- id_to_review = st.number_input(
205
- "Enter id / أدخل الرقم", min_value=0, max_value=len(df), value=0, step=1
206
- )
207
- reason_for_review = st.text_area("Explain why / أدخل سبب المراجعة")
208
- if st.button("Submit / أرسل"):
209
- if reason_for_review == "":
210
- st.error("Please enter a reason / الرجاء إدخال سبب")
211
- else:
212
- filename = f"review_id_{id_to_review}_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.txt"
213
- with open(filename, "w") as f:
214
- f.write(f"id: {id_to_review}, explanation: {reason_for_review}\n")
215
- api.upload_file(
216
- path_or_fileobj=filename,
217
- path_in_repo=filename,
218
- repo_id="nt3awnou/review_requests",
219
- repo_type="dataset",
220
- )
221
- st.success(
222
- "Submitted at https://huggingface.co/datasets/nt3awnou/review_requests/ تم الإرسال"
223
- )
224
 
225
 
226
  # Logo and Title
 
198
 
199
  def id_review_submission():
200
  """Id review submission form"""
201
+ # collapse the text
202
+ with st.expander("🔍 Review of requests | مراجعة طلب مساعدة"):
203
+ st.markdown(REVIEW_TEXT)
204
 
205
+ id_to_review = st.number_input(
206
+ "Enter id / أدخل الرقم", min_value=0, max_value=len(df), value=0, step=1
207
+ )
208
+ reason_for_review = st.text_area("Explain why / أدخل سبب المراجعة")
209
+ if st.button("Submit / أرسل"):
210
+ if reason_for_review == "":
211
+ st.error("Please enter a reason / الرجاء إدخال سبب")
212
+ else:
213
+ filename = f"review_id_{id_to_review}_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.txt"
214
+ with open(filename, "w") as f:
215
+ f.write(f"id: {id_to_review}, explanation: {reason_for_review}\n")
216
+ api.upload_file(
217
+ path_or_fileobj=filename,
218
+ path_in_repo=filename,
219
+ repo_id="nt3awnou/review_requests",
220
+ repo_type="dataset",
221
+ )
222
+ st.success(
223
+ "Submitted at https://huggingface.co/datasets/nt3awnou/review_requests/ تم الإرسال"
224
+ )
225
 
226
 
227
  # Logo and Title
src/text_content.py CHANGED
@@ -3,7 +3,7 @@ INTRO_TEXT_EN = """
3
  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. 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 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 so that other NGOs can help affected areas that still haven't received help.
4
  <br>⚠️ Warning : There are still rocks falling down the mountains, making the roads to the affected areas very dangerous. We advise volunteers to donate directly to specialized NGOs.<br>
5
  <br>
6
- <b>✉️ You can contact us via email at </b><a href="mailto:nt3awnoumorocco@gmail.com">nt3awnoumorocco@gmail.com</a> <br>
7
  <b>📝 Help us report more people in need by filling this form </b><a href="https://forms.gle/nZNCUVog9ka2Vdqu6">https://forms.gle/nZNCUVog9ka2Vdqu6</a> <br>
8
  <b>📝 NGOs can report their interventions by filling this form </b><a href="https://forms.gle/PsNSuHHjTTgwQMmVA">https://forms.gle/PsNSuHHjTTgwQMmVA</a> <br>
9
  <b>❗️ Our team is working day and night to verify the data. Please reach out to us if you can help us verify the data. </b>
@@ -18,7 +18,9 @@ INTRO_TEXT_AR = """
18
  <br> تحذير : نظرا لخطورة الطرقان بسبب الحجر اللي كيطيح من الجبال، ننصح المتطوعين اللي بغاو يساعدو المناطق المتضررة يتبرعو عن طريق الجمعيات المختصة⚠️
19
  <br>
20
  <br>
21
- nt3awnoumorocco@gmail.com <b>المتطوعين ليبغاو يعاونوا يقدرو يتصلوا معنا عبر البريد ✉️ </b><br>
 
 
22
  https://forms.gle/nZNCUVog9ka2Vdqu6 <b>: ساعدونا نبلغو الناس ليمحتاجين فهاد الاستمارة 📝 </b><br>
23
  https://forms.gle/PsNSuHHjTTgwQMmVA <b>: الجمعيات لي عندهم تدخلات يقدرو يبلغونا عبر هاد الاستمار ة📝</b><br>
24
  <b> فريقنا يعمل ليلا نهارا للتحقق من البيانات. يرجى التواصل معنا إذا كنت تستطيع مساعدتنا في التحقق من البيانات❗️</b>
@@ -32,7 +34,7 @@ INTRO_TEXT_FR = """
32
  <br> ⚠️ Avertissement : Il y a encore des chutes de pierres dans les montagnes, ce qui rend les routes vers les zones touchées très dangereuses. Nous conseillons aux volontaires de faire des dons directement aux associations spécialisées.
33
  <br>
34
  <br>
35
- <b>✉️ Vous pouvez nous contacter par courrier électronique à l'adresse suivante </b><a href="mailto:nt3awnoumorocco@gmail.com">nt3awnoumorocco@gmail.com</a> <br>
36
  <b>📝 Aidez-nous à signaler plus de personnes dans le besoin en remplissant ce formulaire : </b><a href="https://forms.gle/nZNCUVog9ka2Vdqu6">https://forms.gle/nZNCUVog9ka2Vdqu6</a> <br>
37
  <b>📝 Les associations peuvent signaler leurs interventions en remplissant ce formulaire : </b><a href="https://forms.gle/PsNSuHHjTTgwQMmVA">https://forms.gle/PsNSuHHjTTgwQMmVA</a> <br>
38
  <b>❗️Notre équipe travaille jour et nuit pour vérifier les données. Veuillez nous contacter si vous pouvez nous aider à vérifier les données. </b>
 
3
  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. 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 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 so that other NGOs can help affected areas that still haven't received help.
4
  <br>⚠️ Warning : There are still rocks falling down the mountains, making the roads to the affected areas very dangerous. We advise volunteers to donate directly to specialized NGOs.<br>
5
  <br>
6
+ <b>✉️ You can contact us via email at </b><a href="mailto:nt3awnoumorocco@gmail.com">nt3awnoumorocco@gmail.com</a> or via Instagram <a href="https://www.instagram.com/nt3awnou_morocco/">@nt3awnou_morocco</a> <br>
7
  <b>📝 Help us report more people in need by filling this form </b><a href="https://forms.gle/nZNCUVog9ka2Vdqu6">https://forms.gle/nZNCUVog9ka2Vdqu6</a> <br>
8
  <b>📝 NGOs can report their interventions by filling this form </b><a href="https://forms.gle/PsNSuHHjTTgwQMmVA">https://forms.gle/PsNSuHHjTTgwQMmVA</a> <br>
9
  <b>❗️ Our team is working day and night to verify the data. Please reach out to us if you can help us verify the data. </b>
 
18
  <br> تحذير : نظرا لخطورة الطرقان بسبب الحجر اللي كيطيح من الجبال، ننصح المتطوعين اللي بغاو يساعدو المناطق المتضررة يتبرعو عن طريق الجمعيات المختصة⚠️
19
  <br>
20
  <br>
21
+ nt3awnoumorocco@gmail.com <b>المتطوعين ليبغاو يعاونوا يقدرو يتصلوا معنا عبر البريد ✉️ </b>
22
+ <br>
23
+ <b> <a href="https://www.instagram.com/nt3awnou_morocco/">@nt3awnou_morocco</a> أو عبر الانستغرام </b>
24
  https://forms.gle/nZNCUVog9ka2Vdqu6 <b>: ساعدونا نبلغو الناس ليمحتاجين فهاد الاستمارة 📝 </b><br>
25
  https://forms.gle/PsNSuHHjTTgwQMmVA <b>: الجمعيات لي عندهم تدخلات يقدرو يبلغونا عبر هاد الاستمار ة📝</b><br>
26
  <b> فريقنا يعمل ليلا نهارا للتحقق من البيانات. يرجى التواصل معنا إذا كنت تستطيع مساعدتنا في التحقق من البيانات❗️</b>
 
34
  <br> ⚠️ Avertissement : Il y a encore des chutes de pierres dans les montagnes, ce qui rend les routes vers les zones touchées très dangereuses. Nous conseillons aux volontaires de faire des dons directement aux associations spécialisées.
35
  <br>
36
  <br>
37
+ <b>✉️ Vous pouvez nous contacter par courrier électronique à l'adresse suivante </b><a href="mailto:nt3awnoumorocco@gmail.com">nt3awnoumorocco@gmail.com</a> ou via Instagram <a href="https://www.instagram.com/nt3awnou_morocco/">@nt3awnou_morocco</a> <br>
38
  <b>📝 Aidez-nous à signaler plus de personnes dans le besoin en remplissant ce formulaire : </b><a href="https://forms.gle/nZNCUVog9ka2Vdqu6">https://forms.gle/nZNCUVog9ka2Vdqu6</a> <br>
39
  <b>📝 Les associations peuvent signaler leurs interventions en remplissant ce formulaire : </b><a href="https://forms.gle/PsNSuHHjTTgwQMmVA">https://forms.gle/PsNSuHHjTTgwQMmVA</a> <br>
40
  <b>❗️Notre équipe travaille jour et nuit pour vérifier les données. Veuillez nous contacter si vous pouvez nous aider à vérifier les données. </b>