Update app.py
Browse files
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",
|