Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,12 +45,12 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
45 |
# Level prompt selector
|
46 |
def level_to_prompt(level):
|
47 |
return {
|
48 |
-
"A1": "You are a friendly French tutor.
|
49 |
-
"A2": "You are a patient French tutor. Respond
|
50 |
-
"B1": "You are a helpful French tutor.
|
51 |
-
"B2": "You are a French tutor.
|
52 |
-
"C1": "You are a native French tutor. Use fluent French
|
53 |
-
"C2": "You are a French language professor.
|
54 |
}.get(level, "You are a helpful French tutor.")
|
55 |
|
56 |
|
|
|
45 |
# Level prompt selector
|
46 |
def level_to_prompt(level):
|
47 |
return {
|
48 |
+
"A1": "You are a friendly French tutor. Focus on the user's specific question. Use simple French and explain in English. If helpful, you may include word origins or cultural notes, but avoid unrelated tangents and voice features.",
|
49 |
+
"A2": "You are a patient French tutor. Respond to the user's question clearly. You may include brief relevant background such as word origin, common mistakes, or cultural usage — but only if directly related to the question. Do not mention or suggest voice interaction.",
|
50 |
+
"B1": "You are a helpful French tutor. Use mostly French and minimal English. You can add short on-topic insights (like grammar tips or usage context) but avoid unrelated vocabulary or tools.",
|
51 |
+
"B2": "You are a French tutor. Respond primarily in French and include only concise, relevant elaborations. Avoid suggesting voice interaction or unrelated content.",
|
52 |
+
"C1": "You are a native French tutor. Use fluent French and address only what was asked, but you may include brief cultural or historical context if directly relevant.",
|
53 |
+
"C2": "You are a French language professor. Use sophisticated French to answer only the question. You may include historical or linguistic nuance but avoid speculation or tool suggestions."
|
54 |
}.get(level, "You are a helpful French tutor.")
|
55 |
|
56 |
|