/
__init__.py
executable file
·49 lines (39 loc) · 1.35 KB
/
__init__.py
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
#!/usr/bin/env python3
def main():
"""
NAME
AI-News - artificially intelligent fake-news articles
SYNOPSIS
python AI-News [MODE] [OPTION]...
DESCRIPTION
AI-News is a program in Python 3.7 that uses PyTorch to train a Gated Recurrent Unit (GRU)
neural network to write fake news articles. The network was trained using supervised
learning via SQLite training data at https://www.dropbox.com/s/b2cyb85ib17s7zo/all-the-news.db?dl=0%22 .
MODE
--train, -t
Launch a supervised training session using nvidia GPU hardware
--serve, -fs
Launch a flask server to http://127.0.0.1:5000 to see news article output
--no-serve, -x
Do not launch a flask server to see news article output
OPTION
--save, -s [location]
Save program output to file
--print, -p
Print program output to the console
ACKNOWLEDGMENTS
This project would not be possible without the support of
+ Sydney Leither & Jeffery <last name>;
+ Chris Midkiff, Ian Walton, & Josh Neubecker;
+ Delip Rao & Bian McMahan;
+ John Paximadis & Andrew Watkins;
and so many others who supported our academic careers and intellectual endeavors.
THANK YOU!
"""
'''
Do things here with command-line arguments
'''
import ainews
ainews.main()
if __name__ == '__main__':
main()