changed prompt
Browse files
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"""
|
110 |
else:
|
111 |
-
prompt = f"""Answer
|
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"
|