openai-cookbook/apps/file-q-and-a/nextjs-with-flask-server/server/script/start
2023-03-12 19:15:13 -04:00

11 lines
192 B
Bash

#!/bin/bash
set -e
echo "Starting Python server..."
pip install virtualenv
python -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
OPENAI_API_KEY=$1 python app.py