Spaces:
Runtime error
Runtime error
File size: 333 Bytes
086e787 |
1 2 3 4 5 6 7 8 9 |
import gradio as gr
from keybert import KeyBERT
def keywords(text):
model = KeyBERT("sentence-transformers/xlm-r-distilroberta-base-paraphrase-v1")
keywords = model.extract_keywords("The quick brown fox jumps over the lazy dog.")
return keywords
gr.Interface(keywords, "text", "text",title="Keyword Extractor").launch() |