mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 20:03:28 +02:00
fix invoice_ocr
This commit is contained in:
parent
da1e0b8792
commit
a1e1eb8307
4 changed files with 30 additions and 7 deletions
|
|
@ -10,7 +10,7 @@
|
|||
import asyncio
|
||||
from pathlib import Path
|
||||
|
||||
from metagpt.roles.invoice_ocr_assistant import InvoiceOCRAssistant
|
||||
from metagpt.roles.invoice_ocr_assistant import InvoiceOCRAssistant, InvoicePath
|
||||
from metagpt.schema import Message
|
||||
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ async def main():
|
|||
|
||||
for path in absolute_file_paths:
|
||||
role = InvoiceOCRAssistant()
|
||||
await role.run(Message(content="Invoicing date", instruct_content={"file_path": path}))
|
||||
await role.run(Message(content="Invoicing date", instruct_content=InvoicePath(file_path=path)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue