Skip to content

Instantly share code, notes, and snippets.

@steven-tey
Created December 7, 2020 05:29
Show Gist options
  • Save steven-tey/5f5f3437693cb4d4e00aace530c9e845 to your computer and use it in GitHub Desktop.
Save steven-tey/5f5f3437693cb4d4e00aace530c9e845 to your computer and use it in GitHub Desktop.
Importing libraries for model.py file for NLP Moviebot
from flask import Flask, jsonify, render_template, request
from flask_cors import CORS, cross_origin
import pandas as pd
from ast import literal_eval
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import boto3
from botocore.config import Config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment