Spaces:
Runtime error
Runtime error
update tokenizer
Browse files
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("
|
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 |
|