Skip to content

Commit 0911a56

Browse files
author
Bill Prin
committed
Fix import
1 parent dd48168 commit 0911a56

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

appengine/flexible/scipy/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import os
1717

1818
from flask import Flask
19-
from scipy.misc import imread
2019
import scipy.misc
2120

2221
app = Flask(__name__)
@@ -28,7 +27,7 @@ def resize():
2827
"""Demonstrates using scipy to resize an image."""
2928
app_path = os.path.dirname(os.path.realpath(__file__))
3029
image_path = os.path.join(app_path, 'assets/google_logo.jpg')
31-
img = imread(image_path)
30+
img = scipy.misc.imread(image_path)
3231
img_tinted = scipy.misc.imresize(img, (300, 300))
3332
output_image_path = os.path.join(
3433
app_path, 'assets/resized_google_logo.jpg')

0 commit comments

Comments
 (0)