llmahmad commited on
Commit
fd40918
·
verified ·
1 Parent(s): 70cc79d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ import streamlit as st
5
  from transformers import PegasusTokenizer, PegasusForConditionalGeneration
6
 
7
  # Load the model and tokenizer
8
- model_name = "google/pegasus-xsum" # Using a different Pegasus model
 
9
 
10
  tokenizer = PegasusTokenizer.from_pretrained(model_name)
11
  model = PegasusForConditionalGeneration.from_pretrained(model_name)
 
5
  from transformers import PegasusTokenizer, PegasusForConditionalGeneration
6
 
7
  # Load the model and tokenizer
8
+ model_name = '.' # Path to the current directory where files are located
9
+
10
 
11
  tokenizer = PegasusTokenizer.from_pretrained(model_name)
12
  model = PegasusForConditionalGeneration.from_pretrained(model_name)