Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,8 @@ def gemini_generate_content(model, prompt_text, file_upload_obj=None):
|
|
| 27 |
# Load merged_gemini_output.txt reference
|
| 28 |
with open("merged_gemini_output.txt", "r", encoding="utf-8") as f:
|
| 29 |
merged_questions_ref = f.read()
|
|
|
|
|
|
|
| 30 |
|
| 31 |
TOPIC_LIST = """
|
| 32 |
"SL 1.1 - Operations with numbers in the form a × 10k where 1 < a < 10 and k is an integer.",
|
|
@@ -144,7 +146,9 @@ TASK 2: Based on the student's performance in the graded answer sheet, generate
|
|
| 144 |
2. 3 retention items: concepts the student got right
|
| 145 |
3. 1 synthesis/higher-order item: combines multiple concepts
|
| 146 |
|
| 147 |
-
|
|
|
|
|
|
|
| 148 |
"""
|
| 149 |
|
| 150 |
result = gemini_generate_content(model, prompt_text=prompt)
|
|
|
|
| 27 |
# Load merged_gemini_output.txt reference
|
| 28 |
with open("merged_gemini_output.txt", "r", encoding="utf-8") as f:
|
| 29 |
merged_questions_ref = f.read()
|
| 30 |
+
print("Success")
|
| 31 |
+
|
| 32 |
|
| 33 |
TOPIC_LIST = """
|
| 34 |
"SL 1.1 - Operations with numbers in the form a × 10k where 1 < a < 10 and k is an integer.",
|
|
|
|
| 146 |
2. 3 retention items: concepts the student got right
|
| 147 |
3. 1 synthesis/higher-order item: combines multiple concepts
|
| 148 |
|
| 149 |
+
include every question from merged_question_ref
|
| 150 |
+
|
| 151 |
+
OUTPUT 2: Provide a JSON array of the 8 remedial questions with [question number, topic, and content , image(if attached) and (year,month) ]
|
| 152 |
"""
|
| 153 |
|
| 154 |
result = gemini_generate_content(model, prompt_text=prompt)
|