(no commit message)

This commit is contained in:
2025-10-27 08:40:05 -04:00
parent 23ccaa3b53
commit f69def1fef
2 changed files with 7 additions and 19 deletions

View File

@@ -22,4 +22,10 @@ class ReceiptClassifier(PrecompiledAgent): # Extends dspy.module()
return self.extract(image=receipt_image)
agent = ReceiptClassifier(ReceiptClassifierConfig())
agent.push_to_hub("farouk1/receipt-classifier", with_code=True) # Set MODAIC_TOKEN
if __name__ == "__main__":
results = agent("https://img.freepik.com/free-vector/receipt-template-collection-with-realistic-design_23-2147922106.jpg?semt=ais_hybrid&w=740&q=80")
print(results)
agent.push_to_hub("farouk1/receipt-classifier", with_code=True) # Set MODAIC_TOKEN