Update app.py
Browse files
app.py
CHANGED
|
@@ -197,13 +197,13 @@ with gr.Blocks() as demo:
|
|
| 197 |
gr.Markdown("This program currently supports English text only. You can enter one record or file of records. / يدعم هذا البرنامج حاليًا اللغة الإنجليزية فقط. يمكنك إدخال سجل واحد أو ملف يحتوي على سجلات متعددة.")
|
| 198 |
|
| 199 |
# Predict Single Text
|
| 200 |
-
gr.Markdown("##
|
| 201 |
|
| 202 |
# gr.Markdown("### **Sample records for testing the system / أمثلة عينة لاختبار النظام**")
|
| 203 |
# gr.Dataframe(value=example_data, headers=["Text (النص)", "Expected output by the system (نوع النص المتوقع من النظام)"], datatype=["str", "str"], interactive=False)
|
| 204 |
|
| 205 |
gr.Markdown("""
|
| 206 |
-
|
| 207 |
1. Write an English text sample in the text below. / **اكتب نموذجًا نصيًا باللغة الإنجليزية أدناه.**
|
| 208 |
2. Press the submit button. / **اضغط على زر الإرسال.**
|
| 209 |
3. Wait until the interface ends processing and provides the output. /**انتظر حتى ينتهي البرنامج من المعالجة ويعرض النتيجة.**
|
|
@@ -227,9 +227,9 @@ with gr.Blocks() as demo:
|
|
| 227 |
gr.Markdown('<hr style="height: 10px; border: none; color: #000000; background-color: #333; margin-top: 20px; margin-bottom: 20px; width: 100%;">')
|
| 228 |
|
| 229 |
# Predict Multiple Files
|
| 230 |
-
gr.Markdown("##
|
| 231 |
gr.Markdown("""
|
| 232 |
-
|
| 233 |
1. Prepare an Excel or CSV file with multiple posts in a column named 'Text'. / **قم بإعداد ملف اكسل يحتوي على عدة منشورات تحت عمود بعنوان "Text".**
|
| 234 |
2. Upload your file. / **قم بتحميل الملف الخاص بك.**
|
| 235 |
3. Press submit and wait for the results. / **اضغط على زر الإرسال وانتظر النتائج.**
|
|
|
|
| 197 |
gr.Markdown("This program currently supports English text only. You can enter one record or file of records. / يدعم هذا البرنامج حاليًا اللغة الإنجليزية فقط. يمكنك إدخال سجل واحد أو ملف يحتوي على سجلات متعددة.")
|
| 198 |
|
| 199 |
# Predict Single Text
|
| 200 |
+
gr.Markdown("## **Check a post for illegal activity / مراجعة المنشور للتحقق من الأنشطة غير القانونية**")
|
| 201 |
|
| 202 |
# gr.Markdown("### **Sample records for testing the system / أمثلة عينة لاختبار النظام**")
|
| 203 |
# gr.Dataframe(value=example_data, headers=["Text (النص)", "Expected output by the system (نوع النص المتوقع من النظام)"], datatype=["str", "str"], interactive=False)
|
| 204 |
|
| 205 |
gr.Markdown("""
|
| 206 |
+
**How to Use This Demo / كيفية استخدام هذا العرض التوضيحي:**
|
| 207 |
1. Write an English text sample in the text below. / **اكتب نموذجًا نصيًا باللغة الإنجليزية أدناه.**
|
| 208 |
2. Press the submit button. / **اضغط على زر الإرسال.**
|
| 209 |
3. Wait until the interface ends processing and provides the output. /**انتظر حتى ينتهي البرنامج من المعالجة ويعرض النتيجة.**
|
|
|
|
| 227 |
gr.Markdown('<hr style="height: 10px; border: none; color: #000000; background-color: #333; margin-top: 20px; margin-bottom: 20px; width: 100%;">')
|
| 228 |
|
| 229 |
# Predict Multiple Files
|
| 230 |
+
gr.Markdown("## **Check a file for illegal activity / مراجعة الملف للتحقق من الأنشطة غير القانونية**")
|
| 231 |
gr.Markdown("""
|
| 232 |
+
**How to Use This Demo / كيفية استخدام هذا العرض التوضيحي:**
|
| 233 |
1. Prepare an Excel or CSV file with multiple posts in a column named 'Text'. / **قم بإعداد ملف اكسل يحتوي على عدة منشورات تحت عمود بعنوان "Text".**
|
| 234 |
2. Upload your file. / **قم بتحميل الملف الخاص بك.**
|
| 235 |
3. Press submit and wait for the results. / **اضغط على زر الإرسال وانتظر النتائج.**
|