Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oorti98 committed May 2, 2017
2 parents 6b56e46 + 73f1b17 commit 51d62bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flipFlop.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sys
from nltk.corpus import stopwords
from nltk.sentiment.vader import SentimentIntensityAnalyzer
SIMILARITY=.7
SIMILARITY=.8
meme=SentimentIntensityAnalyzer()
num_features=300
index2word_set=set(model1.index2word)
Expand Down
10 changes: 5 additions & 5 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ def upload_file():
filedata2=filedata2[0:min(len(filedata2),100)]

bulkdata = filedata1 +filedata2
print(bulkdata)
#print(bulkdata)
retData=flipFlopped(bulkdata)
#retData= [["ddfssdf",["32320"],["fdssd"]]]
print(retData)
#print(retData)
result = {}
for i in retData:
for j in range(len(i[1])):
result[i[0]+" flipflop #"+str(j)]= i[1][j]
result[i[0]]= " <<<<<FLIPFLOPP>>>>>: "+i[1][j]
for j in range(len(i[2])):
result[i[0]+" consistent #"+str(j)]=i[2][j]
result[i[0]]=" <<<<<CONSISTENT>>>>>: "+i[2][j]
return render_template("result.html",result = result)
# first cut file lenghts down the concat them
else:
Expand All @@ -95,4 +95,4 @@ def static_proxy(path):


if __name__ == '__main__':
app.run(host= "0.0.0.0", debug=True,use_reloader=False)
app.run(host= "0.0.0.0", debug=True,use_reloader=False, port=80)

0 comments on commit 51d62bb

Please # to comment.