ronirigoni commited on
Commit
fe4f68b
1 Parent(s): 8d003b7

Primeiro teste do recommender

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. imdb_recommender.py +1 -4
app.py CHANGED
@@ -1,4 +1,8 @@
1
  import gradio as gr
 
 
 
 
2
  import imdb_recommender
3
 
4
  #def greet(name):
 
1
  import gradio as gr
2
+ import nltk
3
+ nltk.download('punkt')
4
+ from nltk import sent_tokenize, word_tokenize
5
+ from nltk.stem.snowball import SnowballStemmer
6
  import imdb_recommender
7
 
8
  #def greet(name):
imdb_recommender.py CHANGED
@@ -1,10 +1,7 @@
1
  import numpy as np
2
  import pandas as pd
3
  import re
4
- import nltk
5
- nltk.download('punkt')
6
- from nltk import sent_tokenize, word_tokenize
7
- from nltk.stem.snowball import SnowballStemmer
8
  from sklearn.feature_extraction.text import TfidfVectorizer
9
  from sklearn.metrics.pairwise import cosine_similarity
10
  import requests
 
1
  import numpy as np
2
  import pandas as pd
3
  import re
4
+
 
 
 
5
  from sklearn.feature_extraction.text import TfidfVectorizer
6
  from sklearn.metrics.pairwise import cosine_similarity
7
  import requests