oroszgy's picture
Upgraded gradio version in HF spaces with a workaround
092f905 unverified
raw
history blame
413 Bytes
# noinspection PyUnresolvedReferences
import env # Ugly workaround to upgrade gradio version in HF Spaces
import gradio as gr
from examples.keyphrases import demo as keyphrases_demo
demo = gr.Blocks()
with demo:
gr.Markdown("# HuSpaCy Examples")
gr.TabbedInterface(
interface_list=[keyphrases_demo],
tab_names=["Keyphrase extraction"]
)
if __name__ == '__main__':
demo.launch()