Commit
•
b2cd0b7
1
Parent(s):
2382b56
Update app.py
Browse filesAdded functionality for creating the code for quiz question choosing.
app.py
CHANGED
@@ -7,7 +7,7 @@ client = InferenceClient(
|
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
-
system = "<|system|>\
|
11 |
prompt = ""
|
12 |
for user_prompt, bot_response in history:
|
13 |
prompt += f"<|user|>\n{user_prompt}</s>\n"
|
|
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
+
system = "<|system|>\nYour will be given a short quiz with questions. Your job is to choose 6 of these questions based on how good they are and if they make sense. To answer, simply just print out a 0 if you think that that question is not in the top 6, and 1 if you do think it is. Make sure to skip a line each number you output.</s>\n"
|
11 |
prompt = ""
|
12 |
for user_prompt, bot_response in history:
|
13 |
prompt += f"<|user|>\n{user_prompt}</s>\n"
|