Spaces:
Runtime error
Runtime error
File size: 333 Bytes
ef0970f 086e787 ef0970f 086e787 ef0970f |
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() |