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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转录模型为Whisper Api时,创建任务失败 #275

Open
Huangyuren123 opened this issue Jan 26, 2025 · 6 comments
Open

转录模型为Whisper Api时,创建任务失败 #275

Huangyuren123 opened this issue Jan 26, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@Huangyuren123
Copy link

问题描述 | Problem Description

我在设置里完成了Whisper[Api]的设置,也成功检查到了模型。但当我运行任务创建里的Whisper Api设置时,并没有找到相对应的模型。最终,不管我选择或输入何种模型,都会显示创建任务失败。

Image
Image
Image

日志信息(可选)| Logs (Optional)

开始创建文件任务:C:/Users/Huangyuren/Desktop/瓦尔迪.mp4
获取视频信息执行命令: ffmpeg -i C:/Users/Huangyuren/Desktop/瓦尔迪.mp4
视频时长: 25.01秒
执行命令: ffmpeg -ss 00:00:07.503 -i C:/Users/Huangyuren/Desktop/瓦尔迪.mp4 -vframes 1 -q:v 2 -y D:/English tool/VideoCaptioner/瓦尔迪/thumbnail.jpg
2025-01-27 02:44:51 - create_task_thread - ERROR - 创建任务失败: 'str' object has no attribute 'value'
Traceback (most recent call last):
  File "D:\English tool\VideoCaptioner\app\core\thread\create_task_thread.py", line 31, in run
    self.create_file_task(self.file_path)
  File "D:\English tool\VideoCaptioner\app\core\thread\create_task_thread.py", line 67, in create_file_task
    whisper_type = f"-{cfg.whisper_api_model.value.value}-{cfg.transcribe_language.value.value}"
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'value'
@Huangyuren123 Huangyuren123 added the bug Something isn't working label Jan 26, 2025
@yuyuyu-232
Copy link

兄弟,你是怎么deepseek的api设置的,我现在密钥申请了,url写的是https://api.deepseek.com/v1,你上面那个去掉v1的也试过都是成功不了。这是还需要进行其他的操作嘛。

@huongng105
Copy link

我有时无法连接,似乎DeepSeek超负荷了吗?

Image

@philpw99
Copy link

#277 一样的问题

@yuyuyu-232
Copy link

兄弟,我现在可以连接上了,但是也碰到了和你一样的问题。你现在有什么解决办法了嘛?

@jonnyman12345
Copy link

没解决

@WEIFENG2333
Copy link
Owner

whisper api 这版本打包的有问题,等待新版本发布更新就行。

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

6 participants