Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,15 @@ from diffusers import StableDiffusionPipeline
|
|
4 |
import torch
|
5 |
import os
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
8 |
-
HF_TOKEN = os.getenv("
|
9 |
|
10 |
# 1. Tamil to English Translator
|
11 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ta-en")
|
|
|
4 |
import torch
|
5 |
import os
|
6 |
|
7 |
+
# translator = pipeline(
|
8 |
+
# "translation",
|
9 |
+
# model="Helsinki-NLP/opus-mt-ta-en",
|
10 |
+
# use_auth_token="your_hf_token_here"
|
11 |
+
# )
|
12 |
+
|
13 |
+
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
+
HF_TOKEN = os.getenv("HF_TOKEN") # Make sure to set your token in env variables
|
16 |
|
17 |
# 1. Tamil to English Translator
|
18 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ta-en")
|