chore: remove unused dependencies
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
from flask import Flask, jsonify, request
|
||||
from flask_cors import CORS
|
||||
from nltk.corpus import stopwords
|
||||
from datetime import datetime
|
||||
from server.stat_gen import StatGen
|
||||
|
||||
import nltk
|
||||
import pandas as pd
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# Allow for CORS from localhost:5173
|
||||
@@ -15,9 +10,6 @@ CORS(app, resources={r"/*": {"origins": "http://localhost:5173"}})
|
||||
# Global State
|
||||
stat_obj = None
|
||||
|
||||
nltk.download('stopwords')
|
||||
EXCLUDE_WORDS = set(stopwords.words('english'))
|
||||
|
||||
@app.route('/upload', methods=['POST'])
|
||||
def upload_data():
|
||||
if "posts" not in request.files or "comments" not in request.files:
|
||||
|
||||
Reference in New Issue
Block a user