Files
RE-GPT/convert_to_md.sh
Kevin Thomas f8fb3480e0 init commit
2024-11-30 09:24:14 -05:00

19 lines
486 B
Bash
Executable File

#!/bin/bash
# Check if the notebook file exists
if [ ! -f "RE-GPT.ipynb" ]; then
echo "Nootebook file not found!"
exit 1
fi
# Convert the Jupyter notebook to a markdown file and embed images
jupyter nbconvert --to markdown RE-GPT.ipynb --NbConvertApp.output_base=README --embed-images
# Check if the conversion was successful
if [ $? -eq 0 ]; then
echo "Notebook successfully converted to README.md with embedded images."
else
echo "Conversion failed."
exit 1
fi