Trim doc detection questions for branching
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
This commit is contained in:
@@ -250,17 +250,11 @@ class GuestDocuments(
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
val detectionQuestions = linkedMapOf(
|
val detectionQuestions = linkedMapOf(
|
||||||
"hasTransportDept" to "CONTAINS TRANSPORT DEPARTMENT? Answer YES or NO only.",
|
|
||||||
"hasIncomeTaxDept" to "CONTAINS INCOME TAX DEPARTMENT? Answer YES or NO only.",
|
|
||||||
"hasElectionCommission" to "CONTAINS ELECTION COMMISSION OF INDIA? Answer YES or NO only.",
|
|
||||||
"hasDrivingLicence" to "CONTAINS DRIVING LICENCE? Answer YES or NO only.",
|
"hasDrivingLicence" to "CONTAINS DRIVING LICENCE? Answer YES or NO only.",
|
||||||
"hasPassport" to "CONTAINS PASSPORT? Answer YES or NO only.",
|
"hasTransportDept" to "CONTAINS TRANSPORT DEPARTMENT? Answer YES or NO only.",
|
||||||
"hasPolice" to "CONTAINS POLICE? Answer YES or NO only.",
|
"hasElectionCommission" to "CONTAINS ELECTION COMMISSION OF INDIA? Answer YES or NO only.",
|
||||||
"hasCourt" to "CONTAINS COURT? Answer YES or NO only.",
|
"hasIncomeTaxDept" to "CONTAINS INCOME TAX DEPARTMENT? Answer YES or NO only.",
|
||||||
"hasHighCourt" to "CONTAINS HIGH COURT? Answer YES or NO only.",
|
"hasPassport" to "CONTAINS PASSPORT? Answer YES or NO only."
|
||||||
"hasSupremeCourt" to "CONTAINS SUPREME COURT? Answer YES or NO only.",
|
|
||||||
"hasJudiciary" to "CONTAINS JUDICIARY? Answer YES or NO only.",
|
|
||||||
"isVehiclePhoto" to "IS THIS A VEHICLE PHOTO? Answer YES or NO only."
|
|
||||||
)
|
)
|
||||||
for ((key, question) in detectionQuestions) {
|
for ((key, question) in detectionQuestions) {
|
||||||
results[key] = llamaClient.ask(imageUrl, question)
|
results[key] = llamaClient.ask(imageUrl, question)
|
||||||
|
|||||||
Reference in New Issue
Block a user