tamang0000
commited on
Commit
·
9545158
1
Parent(s):
fa49f1f
added hf
Browse files
app.py
CHANGED
@@ -7,6 +7,9 @@ import gradio as gr
|
|
7 |
|
8 |
logger = logging.getLogger(__name__) # noqa
|
9 |
|
|
|
|
|
|
|
10 |
|
11 |
def load_test_phrases(filename):
|
12 |
with open(f"./data/{filename}", "r", encoding="utf-8") as file:
|
|
|
7 |
|
8 |
logger = logging.getLogger(__name__) # noqa
|
9 |
|
10 |
+
# hugging face
|
11 |
+
hf_token = os.getenv('HUGGINGFACE_TOKEN')
|
12 |
+
HfApi().login(token=hf_token)
|
13 |
|
14 |
def load_test_phrases(filename):
|
15 |
with open(f"./data/{filename}", "r", encoding="utf-8") as file:
|