Spaces:
Runtime error
Runtime error
Reverting app
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from examples.keyphrases import demo as keyphrases_demo
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
)
|
| 12 |
|
| 13 |
if __name__ == '__main__':
|
| 14 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from examples.keyphrases import demo as keyphrases_demo
|
| 3 |
|
| 4 |
+
demo = gr.Blocks()
|
| 5 |
+
|
| 6 |
+
with demo:
|
| 7 |
+
gr.Markdown("# HuSpaCy Examples")
|
| 8 |
+
gr.TabbedInterface(
|
| 9 |
+
interface_list=[keyphrases_demo],
|
| 10 |
+
tab_names=["Keyphrase extraction"]
|
| 11 |
+
)
|
| 12 |
|
| 13 |
if __name__ == '__main__':
|
| 14 |
demo.launch()
|