Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박은주
/
Todays_Issue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박은주
2021-06-08 23:02:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2dbdb0b928b8a5d8d3bb3f2ec885eae2ec872813
2dbdb0b9
1 parent
d85c5377
Web Server
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
app.py
app.py
0 → 100644
View file @
2dbdb0b
from
flask
import
Flask
,
render_template
from
SentimentAnalyzer
import
StartSentimentAnalysis
from
content
import
GetData
app
=
Flask
(
__name__
)
@app.route
(
'/'
)
def
main
():
GetData
()
tot
,
positive
,
neutral
,
negative
=
StartSentimentAnalysis
()
return
render_template
(
'index.html'
,
data
=
{
'total'
:
tot
,
'positive'
:
int
(
positive
/
tot
*
100
),
'neutral'
:
int
(
neutral
/
tot
*
100
),
'negative'
:
int
(
negative
/
tot
*
100
),
})
if
__name__
==
"__main__"
:
app
.
run
(
port
=
"23023"
,
debug
=
True
)
# host 등을 직접 지정하고 싶다면
# app.run(host="127.0.0.1", port="5000", debug=True)
\ No newline at end of file
Please
register
or
login
to post a comment