Saurabhz commited on
Commit
f78da49
·
1 Parent(s): 5946045

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -2,12 +2,10 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
 
5
-
6
  def question_answer(context, question):
7
- # Replace this with your own checkpoint
8
  model_checkpoint = "huggingface-course/bert-finetuned-squad"
9
  model = pipeline("question-answering", model=model_checkpoint)
10
- to_predict = [
11
  {
12
  "context": context,
13
  "qas": [
 
2
  from transformers import pipeline
3
 
4
 
 
5
  def question_answer(context, question):
 
6
  model_checkpoint = "huggingface-course/bert-finetuned-squad"
7
  model = pipeline("question-answering", model=model_checkpoint)
8
+ to_predict = [
9
  {
10
  "context": context,
11
  "qas": [