Spaces:
Paused
Paused
File size: 589 Bytes
fe41904 9142a0b fe41904 9142a0b fe41904 9142a0b fe41904 9142a0b f55975e 9142a0b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
tts_examples = [
"I love learning machine learning",
"How do you do?",
]
scikit_demo = gr.load(
"LennardZuendorf/legalis-scikit",
src="models",
inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
title="scikit-learn"
)
bert_demo = gr.load(
"LennardZuendorf/legalis-bert",
src="models",
inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
title="bert"
)
demo = gr.TabbedInterface([scikit_demo, bert_demo], ["BERT Classification", "scikit-learn Classification"])
if __name__ == "__main__":
demo.launch()
|