Skip to content

Commit cd48d16

Browse files
committed
v.0.1708.1 - small bugfixes in output parsing
1 parent 1bd04c1 commit cd48d16

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config/bot_token.txt

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,13 @@ After launching your bot successfully, you can interact with it via Telegram (se
196196
- `/language` - set the model's transcription language (`auto` = autodetect); if you know the language spoken in the audio, setting the transcription language manually with this command may improve both transcription speed and accuracy.
197197

198198
## Changes
199+
- v0.1708.1 - Small bug fixes in the output
200+
- Note that running the program within `firejail` using Nvidia driver v.560.xx or newer requires i.e.:
201+
```
202+
firejail --noblacklist=/sys/module --whitelist=/sys/module/nvidia* --read-only=/sys/module/nvidia* python src/main.py
203+
```
204+
This is due to recent changes in Nvidia's driver handling on Linux, see i.e. [here](https://github.com/netblue30/firejail/issues/6509) or [here](https://github.com/netblue30/firejail/issues/6372)
205+
- Dockerized versions should run without problems
199206
- v0.1708 - Direct video file uploads are now available
200207
- (to prevent abuse, they're disabled by default, see `config.ini`)
201208
- v0.1707 - New `config.ini` option: add sites that require full video download

src/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# openai-whisper transcriber-bot for Telegram
44

55
# version of this program
6-
version_number = "0.1708"
6+
version_number = "0.1708.1"
77

88
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99
# https://github.com/FlyingFathead/whisper-transcriber-telegram-bot/
@@ -311,11 +311,14 @@ async def process_queue(self):
311311
ai_transcript_header = f"[ Transcript generated with: https://github.com/FlyingFathead/whisper-transcriber-telegram-bot/ | OpenAI Whisper model: `{model}` | Language: `{language}` ]"
312312
header_content = f"{video_info_message}\n\n{ai_transcript_header}\n\n"
313313
content = content[len(header_content):]
314-
content = transcription_note + content # Add transcription note
314+
# content = transcription_note + content # Add transcription note
315315

316316
# Escape content before splitting
317317
content = html.escape(content)
318318

319+
# Then prepend the transcription note (do not escape it)
320+
content = transcription_note + content # Add transcription note
321+
319322
# Define the maximum message length (Telegram limit is 4096)
320323
max_message_length = 3500
321324

0 commit comments

Comments
 (0)