Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install scripts + explanation #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions scripts/install_script.sh
Original file line number Diff line number Diff line change
@@ -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="<ENTER_API_KEY_HERE>"' >> ~/.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




16 changes: 16 additions & 0 deletions scripts/readme.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions scripts/run_prompting.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python3 -m voila ~/prompting-with-api/prompting_ui-beautified.ipynb