Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 11257cf

Browse files
fake news detection application
1 parent 312f977 commit 11257cf

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed
-57 Bytes
Binary file not shown.

‎Scripts/Miscellaneous/Fake_news_web/app.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from flask import Flask, abort, jsonify, request, render_template
1+
from flask import Flask, request, render_template
22
from sklearn.externals import joblib
33
from feature import *
4-
importjson
4+
55

66
pipeline = joblib.load('pipeline.sav')
77

@@ -21,7 +21,7 @@ def get_delay():
2121
query_text = result['maintext']
2222
print(query_text)
2323
query = get_all_query(query_title, query_author, query_text)
24-
user_input = {'query':query}
24+
##user_input = {'query':query}
2525
pred = pipeline.predict(query)
2626
print(pred)
2727
dic = {1:'real',0:'fake'}

‎Scripts/Miscellaneous/Fake_news_web/feature.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import numpy as np
2-
import pandas as pd
3-
import os
41
import re
52
import nltk
63
nltk.download('wordnet')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /