mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Fix for HF hub download certificates (#1353)
This commit is contained in:
parent
e9502881fc
commit
08ae8ba43f
6 changed files with 17 additions and 13 deletions
|
|
@ -40,12 +40,6 @@
|
|||
|
||||
アプリは署名されていないため、インストール時に警告が表示されます。`詳細情報` -> `実行`を選択してください。
|
||||
|
||||
**または、[winget](https://learn.microsoft.com/ja-jp/windows/package-manager/winget/)でインストール**
|
||||
|
||||
```shell
|
||||
winget install ChidiWilliams.Buzz
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Buzzは[Flatpak](https://flathub.org/apps/io.github.chidiwilliams.Buzz)または[Snap](https://snapcraft.io/buzz)として利用可能です。
|
||||
|
|
|
|||
|
|
@ -43,12 +43,6 @@ Get the installation files from the [SourceForge](https://sourceforge.net/projec
|
|||
|
||||
App is not signed, you will get a warning when you install it. Select `More info` -> `Run anyway`.
|
||||
|
||||
**Alternatively, install with [winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/)**
|
||||
|
||||
```shell
|
||||
winget install ChidiWilliams.Buzz
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Buzz is available as a [Flatpak](https://flathub.org/apps/io.github.chidiwilliams.Buzz) or a [Snap](https://snapcraft.io/buzz).
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ from uuid import UUID
|
|||
# This must be done before importing demucs which uses torch.hub with urllib
|
||||
try:
|
||||
import certifi
|
||||
os.environ.setdefault('REQUESTS_CA_BUNDLE', certifi.where())
|
||||
os.environ.setdefault('SSL_CERT_FILE', certifi.where())
|
||||
os.environ.setdefault('SSL_CERT_DIR', os.path.dirname(certifi.where()))
|
||||
# Also update the default SSL context for urllib
|
||||
|
|
|
|||
|
|
@ -7,8 +7,22 @@ import threading
|
|||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import ssl
|
||||
import warnings
|
||||
import platform
|
||||
|
||||
# Fix SSL certificate verification for bundled applications (macOS, Windows).
|
||||
# This must be done before importing libraries that make HTTPS requests.
|
||||
try:
|
||||
import certifi
|
||||
os.environ.setdefault("REQUESTS_CA_BUNDLE", certifi.where())
|
||||
os.environ.setdefault("SSL_CERT_FILE", certifi.where())
|
||||
os.environ.setdefault("SSL_CERT_DIR", os.path.dirname(certifi.where()))
|
||||
# Also update the default SSL context for urllib
|
||||
ssl._create_default_https_context = lambda: ssl.create_default_context(cafile=certifi.where())
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import requests
|
||||
import whisper
|
||||
import huggingface_hub
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ from typing import Optional
|
|||
# This must be done before importing libraries that download from Hugging Face
|
||||
try:
|
||||
import certifi
|
||||
os.environ.setdefault('REQUESTS_CA_BUNDLE', certifi.where())
|
||||
os.environ.setdefault('SSL_CERT_FILE', certifi.where())
|
||||
os.environ.setdefault('SSL_CERT_DIR', os.path.dirname(certifi.where()))
|
||||
# Also update the default SSL context for urllib
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ OpenAI's [Whisper](https://github.com/openai/whisper).
|
|||
real-time, [Demo](https://www.loom.com/share/564b753eb4d44b55b985b8abd26b55f7))
|
||||
- Presentation window for easy accessibility during events and presentations
|
||||
- [Realtime translation](https://chidiwilliams.github.io/buzz/docs/usage/translations) with OpenAI API compatible AI
|
||||
- [Advanced Transcription Viewer](https://chidiwilliams.github.io/buzz/docs/usage/transcription_viewer)** with search, playback controls, and speed adjustment
|
||||
- [Advanced Transcription Viewer](https://chidiwilliams.github.io/buzz/docs/usage/transcription_viewer) with search, playback controls, and speed adjustment
|
||||
- **Smart Interface** with conditional visibility and state persistence
|
||||
- **Professional Controls** including loop segments, follow audio, and keyboard shortcuts
|
||||
- Supports [Whisper](https://github.com/openai/whisper#available-models-and-languages),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue