File tree Expand file tree Collapse file tree
build-reliable-ai-workflows-with-pipelex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ async def main():
138138 )
139139
140140 # Execute the pipeline and wait for the result
141- pipe_output, _ = await execute_pipeline(
141+ pipe_output = await execute_pipeline(
142142 pipe_code = " description_to_tagline" ,
143143 working_memory = working_memory,
144144 )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async def extract_dpe(pdf_url: str) -> Dpe:
1717 concept_str = " PDF" ,
1818 name = " pdf" ,
1919 )
20- pipe_output, _ = await execute_pipeline(
20+ pipe_output = await execute_pipeline(
2121 pipe_code = " power_extractor_dpe" ,
2222 working_memory = working_memory,
2323 )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async def extract_gantt(image_url: str) -> GanttChart:
2020 )
2121
2222 # Run the pipe
23- pipe_output, _ = await execute_pipeline(
23+ pipe_output = await execute_pipeline(
2424 pipe_code = " extract_gantt_by_steps" ,
2525 working_memory = working_memory,
2626 )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async def extract_generic(pdf_url: str) -> TextAndImagesContent:
1717 concept_str = " PDF" ,
1818 name = " pdf" ,
1919 )
20- pipe_output, _ = await execute_pipeline(
20+ pipe_output = await execute_pipeline(
2121 pipe_code = " power_extractor" ,
2222 working_memory = working_memory,
2323 )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async def extract_proof_of_purchase(pdf_url: str) -> ProofOfPurchase:
1717 concept_str = " PDF" ,
1818 name = " pdf" ,
1919 )
20- pipe_output, _ = await execute_pipeline(
20+ pipe_output = await execute_pipeline(
2121 pipe_code = " power_extractor_proof_of_purchase" ,
2222 working_memory = working_memory,
2323 )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async def extract_table(table_screenshot: str) -> HtmlTable:
1717 concept_str = " tables.TableScreenshot" ,
1818 name = " table_screenshot" ,
1919 )
20- pipe_output, _ = await execute_pipeline(
20+ pipe_output = await execute_pipeline(
2121 pipe_code = " extract_html_table_and_review" ,
2222 working_memory = working_memory,
2323 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ from pipelex.pipeline.execute import execute_pipeline
2525async def hello_world ():
2626
2727 # Execute the pipeline
28- pipe_output, _ = await execute_pipeline(
28+ pipe_output = await execute_pipeline(
2929 pipe_code = " hello_world" ,
3030 )
3131
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async def process_expense_report() -> ListContent[Invoice]:
1919 pdf_url = invoice_pdf_path,
2020 name = " invoice_pdf" ,
2121 )
22- pipe_output, _ = await execute_pipeline(
22+ pipe_output = await execute_pipeline(
2323 pipe_code = " process_invoice" ,
2424 working_memory = working_memory,
2525 )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async def simple_ocr(pdf_url: str):
1919 concept_str = " PDF" ,
2020 name = " pdf" ,
2121 )
22- pipe_output, _ = await execute_pipeline(
22+ pipe_output = await execute_pipeline(
2323 pipe_code = " extract_page_contents_from_pdf" ,
2424 working_memory = working_memory,
2525 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async def generate_screenplay(pitch: str):
2525 working_memory = WorkingMemoryFactory.make_from_single_stuff(pitch_stuff)
2626
2727 # Run the pipe
28- pipe_output, _ = await execute_pipeline(
28+ pipe_output = await execute_pipeline(
2929 pipe_code = " generate_screenplay" ,
3030 working_memory = working_memory,
3131 )
You can’t perform that action at this time.
0 commit comments