Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def translate_text(file, text_input):
|
|
35 |
repo_id=repo_id,
|
36 |
max_length=128,
|
37 |
temperature=0.5,
|
38 |
-
huggingfacehub_api_token=api_token,
|
39 |
)
|
40 |
|
41 |
# Read the input file based on its type
|
|
|
35 |
repo_id=repo_id,
|
36 |
max_length=128,
|
37 |
temperature=0.5,
|
38 |
+
huggingfacehub_api_token=os.environ["api_token"] ,
|
39 |
)
|
40 |
|
41 |
# Read the input file based on its type
|