I copied the Python code that Google Cloud recommends. I've tried it in Jupyter Notebook
and as a Python file but I still get the syntax error:
def predict(content, project_id, model_id):
# More code.
pass
print predict("1.jpg", ispace-254720, ICN886814670746214838)
Gives:
File "<ipython-input-16-a9c7141e2bf3>", line 1
print predict("1.jpg", ispace-254720, ICN886814670746214838)
^
SyntaxError: invalid syntax