Spaces:
Paused
Paused
Update app.py
Browse files
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("
|
40 |
-
model = AutoModelForCausalLM.from_pretrained("
|
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")
|