CountingMstar commited on
Commit
75eaa7d
1 Parent(s): b98460a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from transformers import BertForQuestionAnswering
3
  from transformers import BertTokenizerFast
 
4
 
5
  tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
6
  model = BertForQuestionAnswering.from_pretrained("bert-base-uncased")
 
1
  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")