SmitaGautam commited on
Commit
8ab9c3f
·
verified ·
1 Parent(s): 4e6f28b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, AutoModelForSeq2SeqLM
65
 
66
- indic_model_name = "ai4bharat/indictrans2-en-hi"
67
  indic_tokenizer = AutoTokenizer.from_pretrained(indic_model_name)
68
- indic_model = AutoModelForSeq2SeqLM.from_pretrained(indic_model_name)
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