24Sureshkumar commited on
Commit
c652e39
·
verified ·
1 Parent(s): 59921cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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("HUGGINGFACE_TOKEN") # Make sure to set your token in env variables
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")