Spaces:
Runtime error
Runtime error
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() | |