Skip to content

Commit

Permalink
Prepare for Heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetdevil144 committed Sep 23, 2023
1 parent 8db397b commit 702c2e3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
cd $GITHUB_WORKSPACE/api
cd $GITHUB_WORKSPACE/
pip install -r requirements.txt
# Step 3: Set up the environment with OPENAI_API_KEY
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.env
__pycache__/
*.pyc
*.log
3 changes: 3 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
if not OPENAI_API_KEY:
raise ValueError("No OPENAI_API_KEY set for Flask application")


@app.route('/')
def index():
return render_template('index.html')


@app.route('/process_video', methods=['POST'])
def process_video():
url = request.json['url']
Expand All @@ -32,5 +34,6 @@ def process_video():

return jsonify({"success": True, "shorts": formatted_start_end})


if __name__ == "__main__":
app.run()
File renamed without changes.
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.9.x
8 changes: 0 additions & 8 deletions vercel.json

This file was deleted.

0 comments on commit 702c2e3

Please sign in to comment.