Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -410,7 +410,7 @@ class GeminiGrader:
|
|
| 410 |
EXAMPLE_PAPER=example_paper_text
|
| 411 |
)
|
| 412 |
|
| 413 |
-
prompt_with_essay = f"{
|
| 414 |
try:
|
| 415 |
response = self.model.generate_content(prompt_with_essay)
|
| 416 |
# Clean the response to ensure it's valid JSON
|
|
|
|
| 410 |
EXAMPLE_PAPER=example_paper_text
|
| 411 |
)
|
| 412 |
|
| 413 |
+
prompt_with_essay = f"{final_prompt}\n{essay_text}"
|
| 414 |
try:
|
| 415 |
response = self.model.generate_content(prompt_with_essay)
|
| 416 |
# Clean the response to ensure it's valid JSON
|