Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
import os
|
|
|
|
| 4 |
|
| 5 |
# Set the cache directory for Hugging Face models to ensure they are saved within the Space
|
| 6 |
os.environ['HUGGINGFACE_HUB_CACHE'] = '/app/.cache/huggingface/hub'
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
import os
|
| 4 |
+
from transformers import NllbTokenizer
|
| 5 |
|
| 6 |
# Set the cache directory for Hugging Face models to ensure they are saved within the Space
|
| 7 |
os.environ['HUGGINGFACE_HUB_CACHE'] = '/app/.cache/huggingface/hub'
|