Spaces:
Runtime error
Runtime error
Change qa model to distilbert cased
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import spaces
|
|
3 |
|
4 |
from transformers import pipeline
|
5 |
|
6 |
-
pipe = pipeline(task="question-answering", model="
|
7 |
|
8 |
@spaces.GPU
|
9 |
def get_answer(context, question):
|
|
|
3 |
|
4 |
from transformers import pipeline
|
5 |
|
6 |
+
pipe = pipeline(task="question-answering", model="distilbert/distilbert-base-cased-distilled-squad")
|
7 |
|
8 |
@spaces.GPU
|
9 |
def get_answer(context, question):
|