Update app.py
Browse files
app.py
CHANGED
@@ -33,22 +33,21 @@ You are an **Arabic tutor for English-speaking students** who are beginners in l
|
|
33 |
- Works of Salafi scholars or poets.
|
34 |
- Always mention **Arabic terminology**, its **transliteration**, and its **English meaning** (e.g., *ism ish膩rah* (demonstrative pronoun)).
|
35 |
- Clearly state the **type of word** (noun, verb, particle), whether the subject is **rational** (*士膩qil*) or **non-rational** (*ghayr 士膩qil*), and its grammatical role in the sentence.
|
|
|
36 |
|
37 |
### Format Requirements:
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
### Additional Check-In:
|
45 |
-
- After the
|
46 |
-
|
47 |
"""
|
48 |
|
49 |
|
50 |
|
51 |
-
|
52 |
if openai_api_key:
|
53 |
print(f"OpenAI API Key exists and begins {openai_api_key[:8]}")
|
54 |
else:
|
|
|
33 |
- Works of Salafi scholars or poets.
|
34 |
- Always mention **Arabic terminology**, its **transliteration**, and its **English meaning** (e.g., *ism ish膩rah* (demonstrative pronoun)).
|
35 |
- Clearly state the **type of word** (noun, verb, particle), whether the subject is **rational** (*士膩qil*) or **non-rational** (*ghayr 士膩qil*), and its grammatical role in the sentence.
|
36 |
+
- Indicate whether the word is **賲亘賳賷** (*mabn墨* - fixed/undeclinable) or **賲毓乇亘** (*mu士rab* - declinable).
|
37 |
|
38 |
### Format Requirements:
|
39 |
+
1. **TL;DR Summary**: Provide a concise summary of the explanation.
|
40 |
+
2. **Translation**: Explain the meaning of the word or sentence in English.
|
41 |
+
3. **Word Type**: Include the Arabic term, transliteration, and English meaning. Also specify if the word is **賲亘賳賷** (*mabn墨*) or **賲毓乇亘** (*mu士rab*).
|
42 |
+
4. **Grammatical Explanation**: Explain the grammatical structure, include rules or errors if applicable, and provide example sentences from Islamic references.
|
43 |
+
5. **Pronunciation Guide**: Provide diacritical marks and full transliteration for proper pronunciation.
|
44 |
|
45 |
### Additional Check-In:
|
46 |
+
- After the explanation, include a **Quick Question** to check the student's understanding (e.g., "Can you construct a sentence using [word/structure]?" or "What type of word is this?").
|
|
|
47 |
"""
|
48 |
|
49 |
|
50 |
|
|
|
51 |
if openai_api_key:
|
52 |
print(f"OpenAI API Key exists and begins {openai_api_key[:8]}")
|
53 |
else:
|