Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -450,7 +450,7 @@ Consider: minor spacing differences are OK, but wrong particles or wrong verb en
|
|
| 450 |
Reply with ONLY valid JSON: {{"correct": true}} or {{"correct": false, "reason": "explanation"}}"""
|
| 451 |
|
| 452 |
response = client.models.generate_content(
|
| 453 |
-
model="gemini-2.
|
| 454 |
contents=prompt,
|
| 455 |
)
|
| 456 |
result = json.loads(response.text.strip())
|
|
@@ -857,7 +857,7 @@ Be lenient with stroke variation but strict about the actual characters.
|
|
| 857 |
Return JSON with: correct (bool), detected_text (what you read), feedback (brief comment)."""
|
| 858 |
|
| 859 |
response = client.models.generate_content(
|
| 860 |
-
model="gemini-2.
|
| 861 |
contents=[prompt, types.Part.from_bytes(data=img_bytes, mime_type="image/jpeg")],
|
| 862 |
config=types.GenerateContentConfig(
|
| 863 |
response_mime_type="application/json",
|
|
|
|
| 450 |
Reply with ONLY valid JSON: {{"correct": true}} or {{"correct": false, "reason": "explanation"}}"""
|
| 451 |
|
| 452 |
response = client.models.generate_content(
|
| 453 |
+
model="gemini-2.5-flash",
|
| 454 |
contents=prompt,
|
| 455 |
)
|
| 456 |
result = json.loads(response.text.strip())
|
|
|
|
| 857 |
Return JSON with: correct (bool), detected_text (what you read), feedback (brief comment)."""
|
| 858 |
|
| 859 |
response = client.models.generate_content(
|
| 860 |
+
model="gemini-2.5-flash",
|
| 861 |
contents=[prompt, types.Part.from_bytes(data=img_bytes, mime_type="image/jpeg")],
|
| 862 |
config=types.GenerateContentConfig(
|
| 863 |
response_mime_type="application/json",
|