Skip to content

Instantly share code, notes, and snippets.

View mickaellegal's full-sized avatar

Mickael Le Gal mickaellegal

View GitHub Profile
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@mickaellegal
mickaellegal / app.py
Last active January 3, 2016 22:19
Python: Blog flask app
# We first import all the libraries needed
from flask import Flask, request, render_template, jsonify
from yhat import Yhat
import os
#We create the application object of class Flask
app = Flask(__name__)
# We set our credential to access our model on yhat from the Flask app
yh = Yhat(os.environ.get("YHAT_USERNAME"), os.environ.get("YHAT_APIKEY"))
@mickaellegal
mickaellegal / nyt_article_classifier.ipynb
Last active January 3, 2016 21:49
iPython Notebook: Blog article classifier
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.