mirror of
https://github.com/mytechnotalent/RE-GPT.git
synced 2026-02-12 16:52:47 +00:00
19 lines
486 B
Bash
Executable File
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
|