from flask import Flask
app = Flask(__name__)
app.config['DEBUG'] = True

# Note: We don't need to call run() since our application is embedded within
# the App Engine WSGI application server.


@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello World! 3'


@app.errorhandler(404)
def page_not_found(e):
    """Return a custom 404 error."""
    return 'Sorry, nothing at this URL.', 404

@@ -204,16 +204,17 @@
 te('/')%0A
+#
 def hell
@@ -218,16 +218,17 @@
 ello():%0A
+#
     %22%22%22R
@@ -266,36 +266,1163 @@
 %22%22%22%0A
-    return 'Hello World! 3'%0A
+def index():%0A    return %22%22%22%0A    Upload Image %3Cbr%3E%0A%3Cform method=%22POST%22 action=%22/upload%22 enctype=%22multipart/form-data%22%3E%0A    %3Cinput type=%22file%22 name=%22file%22%3E%0A    %3Cinput type=%22submit%22%3E%0A%3C/form%3E%0A%22%22%22%0A%0A@app.route('/upload', methods=%5B'POST'%5D)%0Adef upload():%0A    %22%22%22Process the uploaded file and upload it to Google Cloud Storage.%22%22%22%0A    uploaded_file = request.files.get('file')%0A%0A    if not uploaded_file:%0A        return 'No file uploaded.', 400%0A%0A    # Create a Cloud Storage client.%0A    gcs = storage.Client()%0A%0A    # Get the bucket that the file will be uploaded to.%0A    bucket = gcs.get_bucket(CLOUD_STORAGE_BUCKET)%0A%0A    # Create a new blob and upload the file's content.%0A    blob = bucket.blob(uploaded_file.filename)%0A%0A    blob.upload_from_string(%0A        uploaded_file.read(),%0A        content_type=uploaded_file.content_type%0A    )%0A%0A    # The public URL can be used to directly access the uploaded file via HTTP.%0A    return blob.public_url%0A%0A@app.errorhandler(500)%0Adef server_error(e):%0A    logging.exception('An error occurred during a request.')%0A    return %22%22%22%0A    An internal error occurred: %3Cpre%3E%7B%7D%3C/pre%3E%0A    See logs for full stacktrace.%0A    %22%22%22.format(e), 500
 %0A%0A@a

Insert Upload function & save Google storage.