Skip to content

Commit

Permalink
Minor fixes & update pypi token (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Jan 11, 2024
1 parent 6f8c1fe commit 9963507
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:

- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel twine setuptools
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Publish sdist to PyPI
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/fasttextsearch-*.tar.gz
2 changes: 1 addition & 1 deletion examples/libriheavy/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_params() -> AttributeDict:
"preceding_context_length": 1000,
"timestamp_position": "current",
"silence_length_to_break": 0.45,
"overlap_ratio": 0.4,
"overlap_ratio": 0.45,
"min_duration": 2,
"max_duration": 30,
"expected_duration": (5, 20),
Expand Down
2 changes: 1 addition & 1 deletion textsearch/python/textsearch/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def _split_into_segments(
"current",
)
start_time = aligns[seg[0]]["hyp_time"]
end_time = aligns[succeeding_index]["hyp_time"]
end_time = aligns[seg[1]]["hyp_time"]

hyp_begin_pos = aligns[seg[0]]["hyp_pos"]
while chr(query_source.binary_text[hyp_begin_pos]) == " ":
Expand Down

0 comments on commit 9963507

Please sign in to comment.