ronirigoni's picture
Primeiro teste do recommender
fe4f68b
raw
history blame contribute delete
400 Bytes
import gradio as gr
import nltk
nltk.download('punkt')
from nltk import sent_tokenize, word_tokenize
from nltk.stem.snowball import SnowballStemmer
import imdb_recommender
#def greet(name):
# return "Hello " + name + "!!"
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
#iface.launch()
iface = gr.Interface(fn=imdb_recommender.main, inputs="text", outputs="text")
iface.launch()