nneka commited on
Commit
5a20082
1 Parent(s): f8024b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
- from transformers import pipeline
2
  import gradio as gr
3
 
 
 
 
4
 
5
  # Define a function to get the model's response
6
  def get_response(context, question):
 
 
1
  import gradio as gr
2
 
3
+ # Load the question-answering pipeline using the deepset/roberta-base-squad2 model
4
+ qa_model = pipeline("question-answering", model="deepset/roberta-base-squad2")
5
+
6
 
7
  # Define a function to get the model's response
8
  def get_response(context, question):