MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / main

Function main

script/run_image2ppt_cli.py:253–283  ·  view source on GitHub ↗

Main entry point

()

Source from the content-addressed store, hash-verified

251
252
253def main():
254 """Main entry point"""
255 try:
256 # Parse arguments
257 args = parse_args()
258
259 # Validate input file
260 input_path = validate_input_file(args.input)
261
262 # Create output directory
263 output_dir = create_output_dir(args)
264
265 # Run workflow
266 final_state = asyncio.run(run_image2ppt_workflow(args, input_path, output_dir))
267
268 # Print results
269 print_results(final_state, output_dir)
270
271 return 0
272
273 except FileNotFoundError as e:
274 log.error("%s", e)
275 return 1
276 except ValueError as e:
277 log.error("%s", e)
278 return 1
279 except Exception as e:
280 log.exception("Workflow execution failed: %s", e)
281 import traceback
282 traceback.print_exc()
283 return 1
284
285
286if __name__ == "__main__":

Callers 1

Calls 6

run_image2ppt_workflowFunction · 0.85
parse_argsFunction · 0.70
validate_input_fileFunction · 0.70
create_output_dirFunction · 0.70
print_resultsFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected