-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
566 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
node_modules |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
from textgenrnn import textgenrnn | ||
textgen = textgenrnn(weights_path='betalist_model_weights.hdf5', | ||
vocab_path='betalist_model_vocab.json', | ||
config_path='betalist_model_config.json') | ||
|
||
textgen.generate_samples(max_gen_length=1000) | ||
textgen.generate_to_file('textgenrnn_texts.txt', max_gen_length=1000) | ||
def main(event, context): | ||
textgen = textgenrnn(weights_path='betalist_model_weights.hdf5', | ||
vocab_path='betalist_model_vocab.json', | ||
config_path='betalist_model_config.json') | ||
|
||
textgen.generate_samples(max_gen_length=1000) | ||
textgen.generate_to_file('betalist_output.txt', max_gen_length=1000) | ||
|
||
if __name__ == "__main__": | ||
main('','') |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
distributed version control for software developers |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import json | ||
|
||
|
||
def hello(event, context): | ||
body = { | ||
"message": "Go Serverless v1.0! Your function executed successfully!", | ||
"input": event | ||
} | ||
|
||
response = { | ||
"statusCode": 200, | ||
"body": json.dumps(body) | ||
} | ||
|
||
return response | ||
|
||
# Use this code if you don't use the http event with the LAMBDA-PROXY | ||
# integration | ||
""" | ||
return { | ||
"message": "Go Serverless v1.0! Your function executed successfully!", | ||
"event": event | ||
} | ||
""" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Hello Bulma!</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"> | ||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | ||
</head> | ||
<body> | ||
<section class="section hero is-info is-medium"> | ||
<div class="container"> | ||
<h1 class="title"> | ||
Hello World | ||
</h1> | ||
<h2 class="subtitle"> | ||
Subtitle | ||
</h2> | ||
<p class="subtitle"> | ||
My first website with <strong>Bulma</strong>! | ||
</p> | ||
<button class="button is-large is-success is-rounded has-text-weight-bold">Click here</button> | ||
<div class="columns"> | ||
<div class="column"> | ||
First column | ||
</div> | ||
<div class="column"> | ||
Second column | ||
</div> | ||
<div class="column"> | ||
Third column | ||
</div> | ||
<div class="column"> | ||
Fourth column | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</body> | ||
</html> |
Oops, something went wrong.