joermd commited on
Commit
f4d2f94
·
verified ·
1 Parent(s): 9ccef71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ if prompt := st.chat_input(f"مرحبا انا سبيدي , كيف استطيع
36
  # Load model only when user submits a prompt
37
  try:
38
  # Load the tokenizer and model with caching in the specified directory
39
- tokenizer = AutoTokenizer.from_pretrained("joermd/llma-speedy", cache_dir=cache_dir)
40
- model = AutoModelForCausalLM.from_pretrained("joermd/llma-speedy", cache_dir=cache_dir)
41
 
42
  # Generate response
43
  inputs = tokenizer(prompt, return_tensors="pt")
 
36
  # Load model only when user submits a prompt
37
  try:
38
  # Load the tokenizer and model with caching in the specified directory
39
+ tokenizer = AutoTokenizer.from_pretrained("sambanovasystems/SambaLingo-Arabic-Chat", cache_dir=cache_dir)
40
+ model = AutoModelForCausalLM.from_pretrained("sambanovasystems/SambaLingo-Arabic-Chat", cache_dir=cache_dir)
41
 
42
  # Generate response
43
  inputs = tokenizer(prompt, return_tensors="pt")