Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ SMTP_PORT = 587 # Replace with your SMTP port
|
|
18 |
# Set up the open-source LLM
|
19 |
@st.cache_resource
|
20 |
def load_model():
|
21 |
-
model_name = "google/flan-t5-large
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
23 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
24 |
pipe = pipeline(
|
|
|
18 |
# Set up the open-source LLM
|
19 |
@st.cache_resource
|
20 |
def load_model():
|
21 |
+
model_name = "google/flan-t5-small" # Changed from 'large' to 'small'
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
23 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
24 |
pipe = pipeline(
|