Skip to content
Open
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
5 changes: 4 additions & 1 deletion python-version/process_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
import os
import base64

app = Flask(__name__)
app = Flask(__name__, static_url_path='', static_folder='src')

# Replace 'YOUR_DEFAULT_API_KEY' with the name of the environment variable
DEFAULT_API_KEY = os.environ.get('YOUR_DEFAULT_API_KEY', 'YOUR_DEFAULT_API_KEY')

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

@app.route('/process_image', methods=['POST'])
def process_image():
Expand Down