OpenMOSS / OpenMOSS/MOSS-Audio

本地运行Gradio遇到的两个问题

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
665
Forks
45
PR merge metrics
No merged PRs in 30d

Description

本地布署后需要 安装torchcodec

视频任务时遇到gbk报错
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 1488: illegal multibyte sequence

希望Gradio demo webui 能切换模型和支持自定义模型路径


请问Gradio 默认是哪个模型?

我测试了视频生成字幕,结果 不大理想,以下是我的prompt(简单的指令结果更好,但是又不能满足需要, 主要为格式和最大字符长度限制):

生成标准的srt视频字幕文件内容,
断句规则:遇到标点符号(逗号、句号、问号、叹号等)必须切分为一个新的时间戳字幕块,且输出的最终字幕文本中不要保留这些标点符号。
字数限制:每条字幕的最大字符长度绝对不能超过 12 个字。如果两个标点符号之间的文本超过了 12 个字,请在语义合适的停顿处强行切分为两个字幕块。
单行显示:每条字幕只能有一行文字,绝对不允许在字幕内部换行。
时间戳模拟:请根据正常人类语速(约每秒 4-5 个字)为每一段分配合理、连续的 SRT 时间戳。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the local Gradio demo and reproducing the torchcodec installation issue and the GBK UnicodeDecodeError described in the report. Trace how the demo selects its default model and loads model paths. Done means the reported setup and decoding problems are addressed, and the web UI can switch models and accept a custom model path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.