Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the model and tokenizer from Hugging Face
|
5 |
-
qa_pipeline = pipeline('question-answering', model='
|
6 |
|
7 |
# Define the function to answer questions
|
8 |
def answer_question(context, question):
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the model and tokenizer from Hugging Face
|
5 |
+
qa_pipeline = pipeline('question-answering', model='MaawaKhalid/Extractive-QA-Bot')
|
6 |
|
7 |
# Define the function to answer questions
|
8 |
def answer_question(context, question):
|