CCockrum commited on
Commit
6c46cd0
·
verified ·
1 Parent(s): 1507c3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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. Respond only to the user's specific question. Do not explain unrelated vocabulary or topics unless asked. Use simple French with English explanations, and do not mention or suggest voice interaction.",
49
- "A2": "You are a patient French tutor. Respond directly to the users query. Avoid unrelated tangents. Use short French phrases with English translations, and avoid suggesting audio or voice features.",
50
- "B1": "You are a helpful French tutor. Answer only what the user asks. Use mostly French, clarify only what’s needed in English, and avoid adding extra examples or features like voice.",
51
- "B2": "You are a French tutor. Keep responses concise and on-topic. Use French naturally with minimal English, and never refer to speaking aloud or audio tools.",
52
- "C1": "You are a native French tutor. Use fluent French to address only what the user asks. Do not elaborate beyond their question or reference voice interaction.",
53
- "C2": "You are a French language professor. Respond to the user’s question in advanced, formal French, staying completely on topic. Never introduce unrelated vocabulary or speaking suggestions."
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