-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
108 lines (94 loc) · 3.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<title>Mimicr: Machine Learning</title>
<meta charset="UTF-8">
<meta name="description" content="Text generation using recurrent neural networks.">
<meta name="author" content="by Joshua Gruenstein and Michael Truell">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="lib/normalize.css" />
<link rel="stylesheet" href="lib/skeleton.css" />
<link rel="stylesheet" href="lib/gh-fork-ribbon.css" />
<link rel="stylesheet" href="style/index.css" />
<link rel="stylesheet" href="style/modal.css" />
</head>
<body>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/joshuagruenstein/Mimicr">Fork me on GitHub</a>
</div>
</div>
<div class="container">
<div class="row">
<div class="six columns maincol">
<h4>Mimicr: Text Generation using Machine Learning</h4>
<p>Upload a text file and watch an artificial neural network train itself to follow its form. For example, input a sample of your favorite language and watch Mimicr evolve to communicate. Or input a sample of a famous author's works and watch Mimicr learn to replicate the author's style.</p>
<p><a href="http://www.gutenberg.org/">Project Gutenberg</a> is a great resource for input files.</p>
</div>
<div class="six columns maincol" id="indiv">
<div id="errorbox" class="row">
<div class="six column u-pull-right"></div>
</div>
<div id="holder"><p id="innerLiner">Drop text file here</p></div>
<p id="upload" style="display:none"><label>Drag & drop not supported, but you can still upload via this input field:<br><input type="file"></label></p>
<input type="button" id="begin" value="begin" class="button-primary" />
</div>
<div class="six columns maincol" id="outdiv">
<form>
<div class="row" >
<label for="sample" class="three columns">Learning...</label> <div class="spinner"></div>
</div>
<div id="outbox" class="row">
Loading...
</div>
<input type="button" id="stop" value="stop" class="button-primary" />
</form>
</div>
</div>
</div>
<footer>
<div id="footerleft">
Built with love by <a href="https://github.com/joshuagruenstein">@joshuagruenstein</a> and <a href="https://github.com/truell20">@truell20</a>.
</div>
<div id="footerright">
<a href="#donate">donate</a>
</div>
</footer>
<div id="output" class="modalDialog">
<div>
<h3 style="margin-bottom:.1rem">Final Output</h3>
<div id="textContainer">
</div>
<div id="stopResumeContainer">
<input type="button" id="resume" value="resume" class="button-primary" />
<input type="button" id="quit" value="quit" class="button-primary" />
</div>
</div>
</div>
<div id="donate" class="modalDialog">
<div>
<a href="#close" title="Close" class="close">X</a>
<h2>Donate</h2>
<p>Mimicr does computation server-side, and therefore costs significant money to run. Help us pay for server time by donating with Bitcoin.</p>
<div id="doninfo">
<a href="bitcoin:1AZktGEqqxEzMWXmMvKRr45PSyfUVFEV3Z?amount=0.1&label=Mimicr">
<img src="img/donate.png" />
</a>
<p id="bitAdr">1AZktGEqqxEzMWXmMvKRr45PSyfUVFEV3Z</p>
</div>
</div>
</div>
<script src="lib/jquery.min.js"></script>
<script src="lib/recurrent.js"></script>
<script src="script/rnn.js"></script>
<script src="script/index.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72018906-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>