Nandan1377 commited on
Commit
24da88c
1 Parent(s): 951eece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from transformers import AutoTokenizer, AutoModel
4
  # Use a pipeline as a high-level helper
5
  from transformers import pipeline
6
  import csv
 
7
 
8
  pipe = pipeline("fill-mask", model="microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext")# Load the PubMedBERT tokenizer and model directly
9
  tokenizer = AutoTokenizer.from_pretrained("microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext")
 
4
  # Use a pipeline as a high-level helper
5
  from transformers import pipeline
6
  import csv
7
+ import torch
8
 
9
  pipe = pipeline("fill-mask", model="microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext")# Load the PubMedBERT tokenizer and model directly
10
  tokenizer = AutoTokenizer.from_pretrained("microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext")