Spaces:
Runtime error
Runtime error
Download app.py from huspacy/example-applications: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/huspacy/example-applications/resolve/main/app.py
- Command line
-
hf download hf://spaces/huspacy/example-applications/app.py
-
curl -L -o app.py https://huggingface.co/spaces/huspacy/example-applications/resolve/main/app.py
572 Bytes
| 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=False) | |