File size: 571 Bytes
208688b
 
592a1a4
30b33eb
1
2
3
4
5
import gradio as gr

default_text = ["🤗 Transformers is backed by the three most popular deep learning libraries — Jax, PyTorch and TensorFlow — with a seamless integration between them. It's straightforward to train your models with one before loading them for inference with the other.", "Which deep learning libraries back 🤗 Transformers?"]
gr.Interface.load("huggingface/huggingface-course/bert-finetuned-squad", title=None, inputs=[gr.Textbox(label="Context", lines=5, value=default_text[0]), gr.Textbox(label="Question", value=default_text[1])]).launch()