dawood HF staff commited on
Commit
7f311c1
·
1 Parent(s): e491744

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ 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?"]
4
+ gr.Interface.load("huggingface/huggingface-course/bert-finetuned-squad", title=None, theme="dark-huggingface", inputs=[gr.inputs.Textbox(label="Context", lines=5, default=default_text[0]), gr.inputs.Textbox(label="Question", default=default_text[1])]).launch()