ahmedJaafari commited on
Commit
4e2fede
·
1 Parent(s): 9ed4a42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -54
app.py CHANGED
@@ -201,60 +201,6 @@ m.get_root().add_child(legend_macro)
201
 
202
  st_data = st_folium(m, use_container_width=True)
203
 
204
- # Google Sheet Table
205
- st.subheader("📝 **Table of requests / جدول الطلبات**")
206
- st.markdown(
207
- """
208
- <iframe src="https://docs.google.com/spreadsheets/d/1gYoBBiBo1L18IVakHkf3t1fOGvHWb23loadyFZUeHJs/" width="100%" height="600px"></iframe>
209
- """,
210
- unsafe_allow_html=True,
211
- )
212
-
213
- # Google Sheet Table
214
- st.subheader("📝 **Table of interventions / جدول التدخلات**")
215
- st.markdown(
216
- """
217
- <iframe src="https://docs.google.com/spreadsheets/d/1eXOTqunOWWP8FRdENPs4cU9ulISm4XZWYJJNR1-SrwY/?single=true&gid=419657423&range=f2:g6&widget=false&chrome=false" width="100%" height="600px"></iframe>
218
- """,
219
- unsafe_allow_html=True,
220
- )
221
-
222
- # Submit an id for review
223
- st.subheader("🔍 Review of requests")
224
- st.markdown("**If a request should be reviewed or dropped submit its id here/ إذا كان يجب مراجعة أو حذف طلب، أدخل رقمه هنا:**")
225
- st.markdown("If you intervened to solve the request, please fill this [form](https://docs.google.com/forms/d/e/1FAIpQLSe8D6T__DJDTVGMrIWMT-H-hQ0qDUWVOncKnrSXgv4NbwHCrQ/viewform)")
226
- st.markdown("[form](https://docs.google.com/forms/d/e/1FAIpQLSe8D6T__DJDTVGMrIWMT-H-hQ0qDUWVOncKnrSXgv4NbwHCrQ/viewform) إذا تدخلت لحل الطلب، يرجى ملء هذا النموذج الرابط")
227
-
228
- id_to_review = st.number_input("Enter id / أدخل الرقم", min_value=0, max_value=len(df), value=0, step=1)
229
- reason_for_review = st.text_area("Explain why / أدخل سبب المراجعة")
230
- if st.button("Submit / أرسل"):
231
- if reason_for_review == "":
232
- st.error("Please enter a reason / الرجاء إدخال سبب")
233
- else:
234
- filename = f"review_id_{id_to_review}_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.txt"
235
- with open(filename, "w") as f:
236
- f.write(f"id: {id_to_review}, explanation: {reason_for_review}\n")
237
- api.upload_file(
238
- path_or_fileobj=filename,
239
- path_in_repo=filename,
240
- repo_id="nt3awnou/review_requests",
241
- repo_type="dataset",
242
- )
243
- st.success("Submitted at https://huggingface.co/datasets/nt3awnou/review_requests/ تم الإرسال")
244
-
245
-
246
-
247
- # Credits
248
- st.markdown(
249
- """
250
- <hr>
251
- <div style="text-align: center;">
252
- <p>By <b>Moroccans</b> for <b>Moroccans</b> 🤝</p>
253
- <p>Bot powered by <a href="https://www.annarabic.com/">Annarabic</a></p>
254
- <p>Collaboration made possible thanks to <a href="https://summerschool.morocco.ai/">AI Summer School</a></p>
255
- """,
256
- unsafe_allow_html=True,
257
- )
258
  if auto_refresh:
259
  time.sleep(number)
260
  st.experimental_rerun()
 
201
 
202
  st_data = st_folium(m, use_container_width=True)
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  if auto_refresh:
205
  time.sleep(number)
206
  st.experimental_rerun()