Spaces:
Sleeping
Sleeping
Update function.py
Browse files- function.py +2 -2
function.py
CHANGED
|
@@ -8,7 +8,7 @@ def get_answers(questions,model):
|
|
| 8 |
st.write("running get answers function answering following questions",questions)
|
| 9 |
|
| 10 |
|
| 11 |
-
answer_prompt = (
|
| 12 |
|
| 13 |
|
| 14 |
if model == "Open AI":
|
|
@@ -28,7 +28,7 @@ def get_answers(questions,model):
|
|
| 28 |
|
| 29 |
|
| 30 |
def GetLLMResponse(selected_topic_level, selected_topic,num_quizzes, model):
|
| 31 |
-
question_prompt = ('I want you to just generate question with this specification: Generate a {selected_topic_level} math quiz on the topic of {selected_topic}. Generate only {num_quizzes} questions not more and without providing answers.')
|
| 32 |
|
| 33 |
st.write("running get llm response and print question prompt",question_prompt)
|
| 34 |
if model == "Open AI":
|
|
|
|
| 8 |
st.write("running get answers function answering following questions",questions)
|
| 9 |
|
| 10 |
|
| 11 |
+
answer_prompt = (f"I want you to become a teacher answer this specific Question: {questions}. You should gave me a straightforward and consise explanation and answer to each one of them")
|
| 12 |
|
| 13 |
|
| 14 |
if model == "Open AI":
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
def GetLLMResponse(selected_topic_level, selected_topic,num_quizzes, model):
|
| 31 |
+
question_prompt = (f'I want you to just generate question with this specification: Generate a {selected_topic_level} math quiz on the topic of {selected_topic}. Generate only {num_quizzes} questions not more and without providing answers.')
|
| 32 |
|
| 33 |
st.write("running get llm response and print question prompt",question_prompt)
|
| 34 |
if model == "Open AI":
|