dawood HF staff commited on
Commit
30b33eb
β€’
1 Parent(s): dfeada4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,4 +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, inputs=[gr.Textbox(label="Context", lines=5, default=default_text[0]), gr.Textbox(label="Question", value=default_text[1])]).launch()
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, inputs=[gr.Textbox(label="Context", lines=5, value=default_text[0]), gr.Textbox(label="Question", value=default_text[1])]).launch()