I'm Le, a software engineer.
- 📫 How to reach me: Twitter
- 📧 or send me a Email
- 🔥 My blog: lewang.dev
Videos Transcription and Translation with Faster Whisper and ChatGPT
License: Apache License 2.0
I'm Le, a software engineer.
Hi @lewangdev, thanks so much for your script. Sometimes I encounter problems with broken sentences in the bilingual subtitles generated during the process, resulting in some source language subtitles missing translated subtitles.
Have you ever encountered this situation?
Supplementing a bit, I am using a third-party API, not OpenAI API.
如题 这个是普遍需求吧~
RuntimeError Traceback (most recent call last)
in <cell line: 45>()
43 fragments = []
44
---> 45 for segment in segments:
46 print(f"[{seconds_to_time_format(segment.start)} --> {seconds_to_time_format(segment.end)}] {segment.text}")
47 if word_level_timestamps:
1 frames
/usr/local/lib/python3.10/dist-packages/faster_whisper/transcribe.py in encode(self, features)
627 features = get_ctranslate2_storage(features)
628
--> 629 return self.model.encode(features, to_cpu=to_cpu)
630
631 def generate_with_fallback(
RuntimeError: Library libcublas.so.11 is not found or cannot be loaded
In addition, can the translation function of gpt4 be supported? Many new models have been added to the openai official website. Can they be added?
UnboundLocalError Traceback (most recent call last)
in <cell line: 101>()
99 return fragments_translated
100
--> 101 fragments_translated = translate_fragments(new_fragments, count_of_sentence_send_once_limit)
102
103 # Save translation as json file
1 frames
in translate_by_chatgpt(sentences, max_retry_times, deployment_id, model_name, temperature)
73 print(f"==Tranlate Retry with {current_retry_times} times")
74 continue
---> 75 return sentences_translated
76
77 def translate_fragments(fragments, sentence_send_limit=5):
UnboundLocalError: local variable 'sentences_translated' referenced before assignment
希望能够支持这个特性
才用了一天
I input the folder path of Google Drive, and it also printed out that 64 files were selected. But when I "Run the model", it only runs the last file. How can I adjust or modify this?
Hi lewangdev,
please support groq.com as supported api keys near azure & openai
waiting for your commit about it
regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.