def test_speller():
model = load_model("keras_spell_e349.h5")
ctable = CharacterTable(read_top_chars())
X_val, y_val = next(generator(NEWS_FILE_NAME_VALIDATE))
print_random_predictions(model, ctable, X_val, y_val)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker login registry.redhat.io | |
| Username: ${REGISTRY-SERVICE-ACCOUNT-USERNAME} | |
| Password: ${REGISTRY-SERVICE-ACCOUNT-PASSWORD} | |
| Login Succeeded! | |
| $ docker pull registry.redhat.io/rhel7 | |
| ---------- | |
| Centos 7 Dockerimage with chanhed "FROM registry.redhat.io/rhel7" should work here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.ReactDOM = preactCompat; | |
| window.React = preactCompat; | |
| console.log('loaded') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- tensorflow/workspace.bzl 2017-01-12 09:21:40.910092000 +0000 | |
| +++ tensorflow/workspace.bzl 2017-01-12 09:22:52.934092000 +0000 | |
| @@ -195,7 +195,7 @@ | |
| native.new_http_archive( | |
| name = "zlib_archive", | |
| - url = "http://zlib.net/zlib-1.2.8.tar.gz", | |
| + url = "http://zlib.net/fossils/zlib-1.2.8.tar.gz", | |
| sha256 = "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d", | |
| build_file = path_prefix + "zlib.BUILD", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use with this Dockerfile https://github.com/johndpope/DockerParseyMcParsefaceAPI | |
| # https://github.com/dsindex/syntaxnet/blob/master/README_api.md | |
| cd / | |
| git clone https://github.com/dsindex/syntaxnet.git work | |
| cd work | |
| git clone --recurse-submodules https://github.com/tensorflow/serving | |
| # checkout proper version of serving | |
| cd serving |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function rgbToHsl(r, g, b){ | |
| r /= 255, g /= 255, b /= 255; | |
| var max = Math.max(r, g, b), min = Math.min(r, g, b); | |
| var h, s, l = (max + min) / 2; | |
| if(max == min){ | |
| h = s = 0; // achromatic | |
| }else{ | |
| var d = max - min; | |
| s = l > 0.5 ? d / (2 - max - min) : d / (max + min); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from flask import Flask, redirect, request, current_app, jsonify | |
| app = Flask(__name__) | |
| @app.route('/', methods=['GET','POST']) | |
| def hello(): | |
| return "Hello World" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #for more info | |
| #https://github.com/ddollar/heroku-fork | |
| heroku plugins:install https://github.com/ddollar/heroku-fork | |
| heroku labs:enable pipelines | |
| heroku fork -a example-source example-destination |