Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [Bug]: ValueError: tuple.index(x): x not in tuple #109

Open
KalvinThien opened this issue Oct 7, 2023 · 1 comment
Open

馃悰 [Bug]: ValueError: tuple.index(x): x not in tuple #109

KalvinThien opened this issue Oct 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@KalvinThien
Copy link

What happened?

ValueError: tuple.index(x): x not in tuple
Traceback:
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/home/main.py", line 128, in
app_runner.run()
File "/home/main.py", line 95, in run
Auto_Fact.app()
File "/home/Auto_Fact.py", line 75, in app
for step_num, step_logs in enumerate(content_engine.makeContent(), start=1):
File "/usr/local/lib/python3.10/dist-packages/shortGPT/engine/abstract_content_engine.py", line 74, in makeContent
self.stepDictcurrentStep
File "/usr/local/lib/python3.10/dist-packages/shortGPT/engine/content_short_engine.py", line 74, in _timeCaptions
whisper_analysis = audio_utils.audioToText(self._db_audio_path)
File "/usr/local/lib/python3.10/dist-packages/shortGPT/audio/audio_utils.py", line 69, in audioToText
gen = transcribe_timestamped(WHISPER_MODEL, filename, verbose=False, fp16=False)
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 266, in transcribe_timestamped
(transcription, words) = _transcribe_timestamped_efficient(model, audio,
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 339, in _transcribe_timestamped_efficient
logit_filters = get_logit_filters(model, whisper_options)
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 1252, in get_logit_filters
decoding_task = whisper.decoding.DecodingTask(model, decoding_options)
File "/usr/local/lib/python3.10/dist-packages/whisper/decoding.py", line 522, in init
self.initial_tokens.insert(0, tokenizer.sot)

What type of browser are you seeing the problem on?

Microsoft Edge

What type of Operating System are you seeing the problem on?

Linux, Windows

Python Version

3.10.11

Application Version

0.13

Expected Behavior

ValueError: tuple.index(x): x not in tuple
Traceback:
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/home/main.py", line 128, in
app_runner.run()
File "/home/main.py", line 95, in run
Auto_Fact.app()
File "/home/Auto_Fact.py", line 75, in app
for step_num, step_logs in enumerate(content_engine.makeContent(), start=1):
File "/usr/local/lib/python3.10/dist-packages/shortGPT/engine/abstract_content_engine.py", line 74, in makeContent
self.stepDictcurrentStep
File "/usr/local/lib/python3.10/dist-packages/shortGPT/engine/content_short_engine.py", line 74, in _timeCaptions
whisper_analysis = audio_utils.audioToText(self._db_audio_path)
File "/usr/local/lib/python3.10/dist-packages/shortGPT/audio/audio_utils.py", line 69, in audioToText
gen = transcribe_timestamped(WHISPER_MODEL, filename, verbose=False, fp16=False)
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 266, in transcribe_timestamped
(transcription, words) = _transcribe_timestamped_efficient(model, audio,
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 339, in _transcribe_timestamped_efficient
logit_filters = get_logit_filters(model, whisper_options)
File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 1252, in get_logit_filters
decoding_task = whisper.decoding.DecodingTask(model, decoding_options)
File "/usr/local/lib/python3.10/dist-packages/whisper/decoding.py", line 522, in init
self.initial_tokens.insert(0, tokenizer.sot)

Error Message

No response

Code to produce this issue.

No response

Screenshots/Assets/Relevant links

No response

@KalvinThien KalvinThien added the bug Something isn't working label Oct 7, 2023
@AxioDev
Copy link

AxioDev commented Nov 1, 2023

Same problem
ERROR : Valueerror : tuple.index(x): x not in tuple
Traceback Info : File "/content/ShortGPT/gui/ui_tab_short_automation.py", line 103, in create_short for step_num, step_info in shortEngine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 74, in makeContent self.stepDictcurrentStep File "/content/ShortGPT/shortGPT/engine/content_short_engine.py", line 74, in _timeCaptions whisper_analysis = audio_utils.audioToText(self._db_audio_path) File "/content/ShortGPT/shortGPT/audio/audio_utils.py", line 69, in audioToText gen = transcribe_timestamped(WHISPER_MODEL, filename, verbose=False, fp16=False) File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 266, in transcribe_timestamped (transcription, words) = _transcribe_timestamped_efficient(model, audio, File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 339, in _transcribe_timestamped_efficient logit_filters = get_logit_filters(model, whisper_options) File "/usr/local/lib/python3.10/dist-packages/whisper_timestamped/transcribe.py", line 1252, in get_logit_filters decoding_task = whisper.decoding.DecodingTask(model, decoding_options) File "/usr/local/lib/python3.10/dist-packages/whisper/decoding.py", line 522, in init self.sot_index: int = self.initial_tokens.index(tokenizer.sot)

If the problem persists, don't hesitate to contact our support. We're here to assist you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants