Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,11 +61,11 @@ transformer_model.eval()
|
|
| 61 |
# llama_model = LlamaForCausalLM.from_pretrained(llama_model_name, device_map="auto")
|
| 62 |
# llama_model.eval()
|
| 63 |
|
| 64 |
-
from transformers import AutoTokenizer,
|
| 65 |
|
| 66 |
-
indic_model_name = "
|
| 67 |
indic_tokenizer = AutoTokenizer.from_pretrained(indic_model_name)
|
| 68 |
-
indic_model =
|
| 69 |
|
| 70 |
# ----------------------
|
| 71 |
# 4️⃣ Transliteration Function
|
|
|
|
| 61 |
# llama_model = LlamaForCausalLM.from_pretrained(llama_model_name, device_map="auto")
|
| 62 |
# llama_model.eval()
|
| 63 |
|
| 64 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 65 |
|
| 66 |
+
indic_model_name = "mistralai/Mistral-7B-Instruct-v0.3"
|
| 67 |
indic_tokenizer = AutoTokenizer.from_pretrained(indic_model_name)
|
| 68 |
+
indic_model = AutoModelForCausalLM.from_pretrained(indic_model_name)
|
| 69 |
|
| 70 |
# ----------------------
|
| 71 |
# 4️⃣ Transliteration Function
|