Skip to content

How to execute python file generated by "autopresent/generate.py"? #7

@bit-zyt

Description

@bit-zyt

Since I couldn’t find the test set provided by the author, I created a test table at slidesbench/test_data/test_Instruction.csv with the following content:
instruction,slide_folder
"Create a slide with the following elements:

  1. Background: Use the provided colorful abstract image as the slide background.

  2. Title:

    • Text: ""GE 7:""
    • Font: Bold, large size, centered at the top.
    • Color: Black.
  3. Subtitle:

    • Text: ""ART APPRECIATION""
    • Font: Bold, large size, centered below the title.
    • Color: Black.
  4. Format:

    • Background: White.
    • Position: Centered horizontally, spanning the width of the slide.
    • Ensure the text is clearly visible against the background.
  5. Alignment: Ensure all text is centered for a balanced look.

  6. Final Check: Review for clarity and ensure all elements are visually appealing.",AutoPresent-main/slidesbench/examples/art_photos/slide_1

    After executing the command python generate.py --path "../slide_gen_model" --save_output_pth "presenter_fully_specified.py" --dataset_path "../slidesbench/test_data/test_Instruction.csv",
    A python file was generated in the directory AutoPresent-main/slidesbench/examples/art_photos/slide_1. However, the generated code lacks any import statements, making it clearly unexecutable. How should I proceed to execute this code to render it into a PPTX file, and is there anything wrong with my execution process?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions