Spaces:
Runtime error
Runtime error
File size: 571 Bytes
286f581 a1efcc4 286f581 3571bad f214d73 1a56f2a d980980 1a56f2a f214d73 286f581 2256c91 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
from examples.anon import demo as anon_demo
from examples.dbpedia import demo as dbpedia_demo
from examples.keyphrases import demo as keyphrases_demo
from examples.relation import demo as relation_demo
demo = gr.Blocks()
with demo:
gr.Markdown("# HuSpaCy Examples")
gr.TabbedInterface(
interface_list=[keyphrases_demo, anon_demo, relation_demo, dbpedia_demo],
tab_names=["Keyphrase extraction", "Text anonymization", "Relation Extraction", "DBpedia Spotlight"],
)
if __name__ == '__main__':
demo.launch(share=True)
|