You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HelloWorld works fine with python 2.7, yhat 1.9.12
Below it fails using python 3.5, yhat 1.9.12
from yhat import Yhat, YhatModel
class HelloWorld(YhatModel):
def execute(self, data):
me = data['name']
greeting = "Hello %s!" % me
return { "greeting": greeting }
yh = Yhat("colin", "d325fc5bcb83fc197ee01edb58b4b396", "https://sandbox.c.yhat.com")
yh.deploy("HelloWorld", HelloWorld, globals())
Are you sure you want to deploy? (y/N): y
extracting model
File "<unknown>", line 1
class HelloWorld(YhatModel):
^
SyntaxError: unexpected EOF while parsing
The text was updated successfully, but these errors were encountered:
HelloWorld works fine with python 2.7, yhat 1.9.12
Below it fails using python 3.5, yhat 1.9.12
The text was updated successfully, but these errors were encountered: