Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
a6c3087
1
Parent(s):
7e1674f
add instagram links
Browse files- app.py +23 -22
- 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 |
-
|
202 |
-
st.
|
|
|
203 |
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
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:[email protected]">[email protected]</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 |
-
[email protected] <b>المتطوعين ليبغاو يعاونوا يقدرو يتصلوا معنا عبر البريد ✉️ </b
|
|
|
|
|
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:[email protected]">[email protected]</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:[email protected]">[email protected]</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 |
+
[email protected] <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:[email protected]">[email protected]</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>
|