From 2668f6a582228b3e8a9c3c5c8a876ee10f7d966b Mon Sep 17 00:00:00 2001 From: Tryndaron Date: Wed, 3 Apr 2024 13:51:04 +0200 Subject: [PATCH] hf token given as str --- .github/workflows/pytest.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index bf8d16c..5e4b4bb 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -32,8 +32,9 @@ jobs: - name: Run pytest - + env: + HF_TOKEN : ${{ secrets.HF_TOKEN }} run: | - echo "${{ secrets.HF_TOKEN }}" >> /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/scraibe/.pyannotetoken - pytest + python -c "import os; print('True' if 'HF_TOKEN' in os.environ else 'False')" + python -c "from scraibe import Scraibe;import os; print(Scraibe(use_auth_token=os.environ.get('HF_TOKEN'), verbose = True).autotranscribe('test/audio_test_1.mp4'))" \ No newline at end of file