Spaces:
Running
Running
File size: 326 Bytes
95e0f74 ecb781f 95e0f74 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
demo = gr.Blocks()
io1 = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es")
io2 = gr.Interface.load("huggingface/gpt2")
io3 = gr.Interface.load("huggingface/deepset/roberta-base-squad2")
with demo:
gr.TabbedInterface(
[io1, io2, io3], ["Translation", "Generation", "QA"]
)
demo.launch()
|