Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created July 19, 2020 05:00
Show Gist options
  • Save vaibhavgehani/c44b9275ce917782c1eba9b64b814603 to your computer and use it in GitHub Desktop.
Save vaibhavgehani/c44b9275ce917782c1eba9b64b814603 to your computer and use it in GitHub Desktop.
@app.route('/movie')
def main():
name=request.args.get('name')
print(name)
if(name != None):
recom_array=recommend_movie(name)
print(recom_array)
try:
return recom_array.to_json(orient='records')
except:
return []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment