Created
August 16, 2020 03:45
-
-
Save Nithanaroy/af020ee1440a34405f6004fe19c61ecd to your computer and use it in GitHub Desktop.
App script file which loads a trained model from drive for 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 loadModelFromDrive() { | |
const f = DriveApp.getFileById("1iO0Lz3022AHgTOR4Xd_WLuR1FVXNUIdU") | |
const modeljson = f.getAs("application/json").getDataAsString(); | |
const f2 = DriveApp.getFileById("1bDZaBUjweWy-KwGpQP68eoJLMulUfXYZ") | |
const weights = f2.getBlob().getBytes() | |
return [modeljson, weights] | |
} | |
function doGet() { | |
return HtmlService.createHtmlOutputFromFile("index") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment