Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def generate_question(answers):
|
|
| 78 |
prompt = "You are playing a game called Kasoti (20 Questions)...\n"
|
| 79 |
for i, (q, a) in enumerate(answers, 1):
|
| 80 |
prompt += f"{i}. Q: {q}\n A: {a}\n"
|
| 81 |
-
prompt += "\nAsk ONLY the next best yes/no question. When you are sure about what word user is thinking end the question with is this correct?"
|
| 82 |
response = query_llm("GROQ", [{"role": "user", "content": prompt}])
|
| 83 |
return response.strip() if response else "Is it something you can hold?"
|
| 84 |
|
|
|
|
| 78 |
prompt = "You are playing a game called Kasoti (20 Questions)...\n"
|
| 79 |
for i, (q, a) in enumerate(answers, 1):
|
| 80 |
prompt += f"{i}. Q: {q}\n A: {a}\n"
|
| 81 |
+
prompt += "\nAsk ONLY the next best yes/no question. When you are sure about what word user is thinking, User will think of any publicly known personality, a common place, living thing or object, end the question with is this correct?"
|
| 82 |
response = query_llm("GROQ", [{"role": "user", "content": prompt}])
|
| 83 |
return response.strip() if response else "Is it something you can hold?"
|
| 84 |
|