Spaces:
Sleeping
Sleeping
Asif555355
commited on
Commit
•
561fe14
1
Parent(s):
21d32d9
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ title = 'Question Answering demo with BERT-BASE-CASED and Gradio'
|
|
4 |
context = "Bangladesh, situated in South Asia, is known for its rich cultural heritage and natural beauty. With a population of over 160 million, it's one of the most densely populated countries globally. The nation has made significant strides in various sectors, including agriculture, textiles, and the technology industry. Dhaka, the capital city, is a bustling metropolis, while the Sundarbans mangrove forest, a UNESCO World Heritage Site, is home to the Royal Bengal Tiger. Despite economic challenges, Bangladesh has made substantial progress in improving healthcare and education, contributing to its social development and global recognition."
|
5 |
question = "What is the name of the mangrove forest?"
|
6 |
|
7 |
-
question_answerer = pipeline("question-answering", model='deepset/bert-base-cased-squad2
|
8 |
#result = question_answerer(question = question, context=context)
|
9 |
#return result['answer']
|
10 |
|
|
|
4 |
context = "Bangladesh, situated in South Asia, is known for its rich cultural heritage and natural beauty. With a population of over 160 million, it's one of the most densely populated countries globally. The nation has made significant strides in various sectors, including agriculture, textiles, and the technology industry. Dhaka, the capital city, is a bustling metropolis, while the Sundarbans mangrove forest, a UNESCO World Heritage Site, is home to the Royal Bengal Tiger. Despite economic challenges, Bangladesh has made substantial progress in improving healthcare and education, contributing to its social development and global recognition."
|
5 |
question = "What is the name of the mangrove forest?"
|
6 |
|
7 |
+
question_answerer = pipeline("question-answering", model='deepset/bert-base-cased-squad2')
|
8 |
#result = question_answerer(question = question, context=context)
|
9 |
#return result['answer']
|
10 |
|