This commit is contained in:
Hamza-Ayed
2024-07-03 02:54:06 +03:00
parent b271101979
commit a1e4325988
11 changed files with 366 additions and 179 deletions

View File

@@ -44,9 +44,11 @@ class EgyptCardAI extends StatelessWidget {
controller.responseIdEgyptFront.isNotEmpty &&
controller.responseIdEgyptBack.isNotEmpty &&
controller
.responseIdEgyptDriverLicense.isNotEmpty &&
controller
.responseCriminalRecordEgypt.isNotEmpty)
.responseIdEgyptDriverLicense.isNotEmpty
// &&
// controller
// .responseCriminalRecordEgypt.isNotEmpty
)
? MyElevatedButton(
title: 'Next'.tr,
onPressed: () {
@@ -64,9 +66,11 @@ class EgyptCardAI extends StatelessWidget {
controller
.responseIdEgyptBack.isNotEmpty &&
controller.responseIdEgyptDriverLicense
.isNotEmpty &&
controller.responseCriminalRecordEgypt
.isNotEmpty)
.isNotEmpty
// &&
// controller.responseCriminalRecordEgypt
// .isNotEmpty
)
? Get.height * .7
: Get.height * .85,
child: ListView(
@@ -662,13 +666,23 @@ Important notes:
IconButton(
onPressed: () async {
ai.allMethodForAI("""
Extract the following fields from the provided text and create a JSON object with these keys:
Extract the following details from the provided car license data and format them into a JSON object:
License Expiration Date
Car Plate
Owner
Address
Car License Data:
JSON Format:
{
"LicenseExpirationDate": "", // Format: YYYY-MM-DD
"car_plate": "",
"owner": "",
"address": ""
"LicenseExpirationDate": "YYYY-MM-DD",
"car_plate": "[Car plate number]",//the car plate is line next to line contain 'ادارة مرور' for bot numbers and letters in arabic with partition like| but you remove |
"owner": "[Owner's full name]",
"address": "[Address if available, otherwise 'Not provided']"
}
Important notes:
@@ -723,13 +737,23 @@ Please fill in the JSON object with the extracted information, following these g
child: InkWell(
onTap: () async {
ai.allMethodForAI("""
Extract the following fields from the provided text and create a JSON object with these keys:
Extract the following details from the provided car license data and format them into a JSON object:
License Expiration Date
Car Plate
Owner
Address
Car License Data:
JSON Format:
{
"LicenseExpirationDate": "", // Format: YYYY-MM-DD
"car_plate": "",
"owner": "",
"address": ""
"LicenseExpirationDate": "YYYY-MM-DD",
"car_plate": "[Car plate number]",//the car plate is line next to line contain 'ادارة مرور' for bot numbers and letters in arabic with partition like| but you remove |
"owner": "[Owner's full name]",
"address": "[Address if available, otherwise 'Not provided']"
}
Important notes: