epsil commited on
Commit
432993e
1 Parent(s): 9c1f53e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
4
  import torch
5
  from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
6
 
 
7
  model = AutoModelForCausalLM.from_pretrained("microsoft/BioGPT-Large-PubMedQA")
8
 
9
  pipe = pipeline("text-generation",
 
4
  import torch
5
  from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
6
 
7
+ tokenizer = AutoTokenizer.from_pretrained("microsoft/BioGPT-Large-PubMedQA")
8
  model = AutoModelForCausalLM.from_pretrained("microsoft/BioGPT-Large-PubMedQA")
9
 
10
  pipe = pipeline("text-generation",