Coder Social home page Coder Social logo

autotranslate's Introduction

Hi there 👋

I'm Le, a software engineer.

autotranslate's People

Contributors

ericclose avatar lewangdev avatar woodongwong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autotranslate's Issues

提示错误

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

Problems with broken sentences in the bilingual subtitles generated

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?
image

Supplementing a bit, I am using a third-party API, not OpenAI API.

error

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

Feature update request

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.