diff --git a/scripts/install_script.sh b/scripts/install_script.sh new file mode 100644 index 0000000..e127262 --- /dev/null +++ b/scripts/install_script.sh @@ -0,0 +1,22 @@ +sudo apt install git +sudo apt install python3.10-venv +sudo apt-get install python3-pip +echo 'export OPENAI_API_KEY=""' >> ~/.bashrc +source ~/.bashrccho $OPENAI_API_KEY + + +git clone https://github.com/ScaDS/prompting-with-api + +cd prompting-with-api + +python3 -m venv prompting-venv + +python3 -m venv activate prompting-venv + +pip install -r requirements.txt + +python3 -m voila prompting_ui-beautified.ipynb + + + + diff --git a/scripts/readme.md b/scripts/readme.md new file mode 100644 index 0000000..adf1b78 --- /dev/null +++ b/scripts/readme.md @@ -0,0 +1,16 @@ +This folder contains the two scripts we copied to the loaner laptops. Before copying them on a thumb drive, make sure to replace the ENTER_API_KEY_HERE with an actual OPEN AI API KEY. We moved the files in the home directory and then executed there from the terminal: + +``` +chmod u+x *.sh +``` + +``` +./install_script.sh +``` + +After that we restarted the terminal and started this: +``` +./run_prompting.sh +``` + +On linux, we clicked the link printed in the terminal and made if Firefox Starting page. \ No newline at end of file diff --git a/scripts/run_prompting.sh b/scripts/run_prompting.sh new file mode 100644 index 0000000..98e4f49 --- /dev/null +++ b/scripts/run_prompting.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python3 -m voila ~/prompting-with-api/prompting_ui-beautified.ipynb