ZohaJaved commited on
Commit
f13a076
·
verified ·
1 Parent(s): 0dd87dd

changed prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,9 +106,9 @@ if query:
106
  try: lang = detect(query)
107
  except: lang = "en"
108
  if lang=="ur":
109
- prompt = f"""مندرجہ ذیل مواد کی بنیاد پر اردو میں مختصر جواب دیں:\n\n{context}\n\nسوال: {query}"""
110
  else:
111
- prompt = f"""Answer briefly and to the point in English based on this context:\n\n{context}\n\nQuestion: {query}"""
112
  resp = client.chat.completions.create(
113
  messages=[{"role":"user","content":prompt}],
114
  model="llama-3.1-8b-instant"
 
106
  try: lang = detect(query)
107
  except: lang = "en"
108
  if lang=="ur":
109
+ prompt = f"""اس سیاق و سباق کی بنیاد پر اردو میں کم از کم 3-4 لائنوں میں جواب دیں۔:\n\n{context}\n\nسوال: {query}"""
110
  else:
111
+ prompt = f"""Answer in atleast 3-4 lines and to the point in English based on this context:\n\n{context}\n\nQuestion: {query}"""
112
  resp = client.chat.completions.create(
113
  messages=[{"role":"user","content":prompt}],
114
  model="llama-3.1-8b-instant"