darshankr commited on
Commit
438e2f4
1 Parent(s): bf3770d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
 
7
  # Set the HF_HOME environment variable to a writable directory
8
  os.environ["HF_HOME"] = "/app/cache"
9
- os.environ["TRANSFORMERS_CACHE"] = "/app/cache
10
 
11
  model = AutoModelForSeq2SeqLM.from_pretrained("ai4bharat/indictrans2-en-indic-1B", trust_remote_code=True)
12
  ip = IndicProcessor(inference=True)
 
6
 
7
  # Set the HF_HOME environment variable to a writable directory
8
  os.environ["HF_HOME"] = "/app/cache"
9
+ os.environ["TRANSFORMERS_CACHE"] = "/app/cache"
10
 
11
  model = AutoModelForSeq2SeqLM.from_pretrained("ai4bharat/indictrans2-en-indic-1B", trust_remote_code=True)
12
  ip = IndicProcessor(inference=True)