Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|