Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration, AutoTokenizer,
|
|
| 4 |
import torch
|
| 5 |
import os
|
| 6 |
import httpx
|
|
|
|
| 7 |
|
| 8 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 9 |
# Language options and mappings
|
|
|
|
| 4 |
import torch
|
| 5 |
import os
|
| 6 |
import httpx
|
| 7 |
+
import languagecodes
|
| 8 |
|
| 9 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 10 |
# Language options and mappings
|