Spaces:
Paused
Paused
CountingMstar
commited on
Commit
•
dd97cd7
1
Parent(s):
b411329
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import BertForQuestionAnswering
|
3 |
from transformers import BertTokenizerFast
|
4 |
import torch
|
|
|
5 |
|
6 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
|
7 |
model = BertForQuestionAnswering.from_pretrained("bert-base-uncased")
|
|
|
2 |
from transformers import BertForQuestionAnswering
|
3 |
from transformers import BertTokenizerFast
|
4 |
import torch
|
5 |
+
from nltk.tokenize import word_tokenize
|
6 |
|
7 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
|
8 |
model = BertForQuestionAnswering.from_pretrained("bert-base-uncased")
|