uyen13 commited on
Commit
64148cf
·
verified ·
1 Parent(s): 88e172a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ import torch
12
  # --- Load mô hình ngôn ngữ ---
13
  @st.cache_resource
14
  def load_llm():
15
- model_name = "google/flan-t5-xl" # Có thể thay bằng google/flan-ul2 hoặc mistralai/Mistral-7B-Instruct-v0.2 nếu có GPU
16
 
17
  tokenizer = AutoTokenizer.from_pretrained(model_name)
18
  model = AutoModelForSeq2SeqLM.from_pretrained(
 
12
  # --- Load mô hình ngôn ngữ ---
13
  @st.cache_resource
14
  def load_llm():
15
+ model_name = "google/flan-ul2" # Có thể thay bằng google/flan-ul2 hoặc mistralai/Mistral-7B-Instruct-v0.2 nếu có GPU
16
 
17
  tokenizer = AutoTokenizer.from_pretrained(model_name)
18
  model = AutoModelForSeq2SeqLM.from_pretrained(