Shariar00 commited on
Commit
ec75ddf
1 Parent(s): 1b6bc75

update tokenizer

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def generate_summary(input_text):
21
  # Create a text generation pipeline
22
  # text_generation_pipeline = pipeline("Falconsai/medical_summarization", model=model, tokenizer=tokenizer)
23
 
24
- tokenizer = AutoTokenizer.from_pretrained("Shariar00/medical_summarization_finetune_medical_qa")
25
  model = AutoModelForSeq2SeqLM.from_pretrained("Shariar00/medical_summarization_finetune_medical_qa")
26
  text_generation_pipeline = pipeline("summarization", model=model, tokenizer=tokenizer)
27
 
 
21
  # Create a text generation pipeline
22
  # text_generation_pipeline = pipeline("Falconsai/medical_summarization", model=model, tokenizer=tokenizer)
23
 
24
+ tokenizer = AutoTokenizer.from_pretrained("Falconsai/medical_summarization")
25
  model = AutoModelForSeq2SeqLM.from_pretrained("Shariar00/medical_summarization_finetune_medical_qa")
26
  text_generation_pipeline = pipeline("summarization", model=model, tokenizer=tokenizer)
27