Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
model_path = "./Model/models--deepset--roberta-base-squad2/snapshots/cbf50ba81465d4d8676b8bab348e31835147541b"
|
| 8 |
|
| 9 |
-
question_answering = pipeline("question-answering", model=model_path)
|
| 10 |
|
| 11 |
# context = "A continent is any of several large geographical regions. Continents are generally identified by convention rather than any strict criteria. A continent could be a single landmass or a part of a very large landmass, as in the case of Asia or Europe. Due to this, the number of continents varies; up to seven or as few as four geographical regions are commonly regarded as continents. Most English-speaking countries recognize seven regions as continents. In order from largest to smallest in area, these seven regions are Asia, Africa, North America, South America, Antarctica, Europe, and Australia.[1] Different variations with fewer continents merge some of these regions; examples of this are merging North America and South America into America, Asia and Europe into Eurasia, and Africa, Asia, and Europe into Afro-Eurasia. \
|
| 12 |
# Oceanic islands are occasionally grouped with a nearby continent to divide all the world's land into geographical regions. Under this scheme, most of the island countries and territories in the Pacific Ocean are grouped together with the continent of Australia to form the geographical region Oceania.[2] \
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
question_answering = pipeline("question-answering", model="deepset/roberta-base-squad2")
|
| 6 |
|
| 7 |
+
# model_path = "./Model/models--deepset--roberta-base-squad2/snapshots/cbf50ba81465d4d8676b8bab348e31835147541b"
|
| 8 |
|
| 9 |
+
# question_answering = pipeline("question-answering", model=model_path)
|
| 10 |
|
| 11 |
# context = "A continent is any of several large geographical regions. Continents are generally identified by convention rather than any strict criteria. A continent could be a single landmass or a part of a very large landmass, as in the case of Asia or Europe. Due to this, the number of continents varies; up to seven or as few as four geographical regions are commonly regarded as continents. Most English-speaking countries recognize seven regions as continents. In order from largest to smallest in area, these seven regions are Asia, Africa, North America, South America, Antarctica, Europe, and Australia.[1] Different variations with fewer continents merge some of these regions; examples of this are merging North America and South America into America, Asia and Europe into Eurasia, and Africa, Asia, and Europe into Afro-Eurasia. \
|
| 12 |
# Oceanic islands are occasionally grouped with a nearby continent to divide all the world's land into geographical regions. Under this scheme, most of the island countries and territories in the Pacific Ocean are grouped together with the continent of Australia to form the geographical region Oceania.[2] \
|