Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ nlp = pipeline('question-answering',
|
|
6 |
tokenizer='databricks/dolly-v2-3b',
|
7 |
torch_dtype=torch.bfloat16,
|
8 |
trust_remote_code=True,
|
9 |
-
device_map="auto")
|
10 |
|
11 |
def qnamodel(context,question):
|
12 |
question_set = {'context':context,'question':question}
|
|
|
6 |
tokenizer='databricks/dolly-v2-3b',
|
7 |
torch_dtype=torch.bfloat16,
|
8 |
trust_remote_code=True,
|
9 |
+
device_map="auto")
|
10 |
|
11 |
def qnamodel(context,question):
|
12 |
question_set = {'context':context,'question':question}
|