Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Nn fakenews" #5

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 0 additions & 17 deletions api/NeuralNetworkFakeNews

This file was deleted.

143 changes: 0 additions & 143 deletions api/Neural_Network2.py

This file was deleted.

Binary file removed api/__pycache__/DataProcesser.cpython-39.pyc
Binary file not shown.
Binary file removed api/__pycache__/NbEmotionsModel.cpython-39.pyc
Binary file not shown.
Binary file removed api/__pycache__/NbNewsModel.cpython-39.pyc
Binary file not shown.
11 changes: 1 addition & 10 deletions api/app.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from flask import Flask, jsonify, request
from flask_cors import CORS
from DataProcesser import DataProcesser

from available_classifiers import get_available_classifiers

import os
import atexit
import threading
import pandas as pd
import nltk
import pandas as pd
import json
nltk.download('wordnet')

Expand Down Expand Up @@ -55,14 +54,6 @@ def shutdown():
shutdown_server()
return 'Server shutting down...'

@app.route('/neural-network',methods=["POST"])
def train_model():
received_data = request.get_json()
selected_data = received_data.get('data')
selected_label = received_data.get('label')
name = received_data.get('name')
return create_and_train_model(selected_data,selected_label,name)

if __name__ == '__main__':
server_thread = threading.Thread(target=run_flask_app)
server_thread.start()
Expand Down
185 changes: 0 additions & 185 deletions api/models/nn_fakenews.py

This file was deleted.

Binary file removed api/models/nn_fakenews_model.pkl
Binary file not shown.
Loading
Loading