MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / Paper2VideoRequest

Class Paper2VideoRequest

dataflow_agent/state.py:106–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105@dataclass
106class Paper2VideoRequest(MainRequest):
107 paper_pdf_path: str = ""
108 # 用户上传的图片,添加在ppt中的,现在这个字段不用了
109 user_imgs_path: str = ""
110 # tts使用的模型(CosyVoice)
111 tts_model: str = "cosyvoice-v3-flash"
112 tts_voice_name: str = ""
113 # 判断当前处于什么stage
114 script_stage: bool = True
115
116 # 用户决定是否上传自己的声音
117 use_specific_sound: bool = False
118 # 用户上传的声音
119 ref_audio_path: str = ""
120 # 用户上传声音对应的文本
121 ref_text: str = ""
122 # 用户上传的人像图片
123 ref_img_path: str = ""
124 # 数字人模型:echomimic(本地)或 liveportrait(云,默认)
125 talking_model: str = "liveportrait"
126 # 用户上传的cursor图片
127 cursor_path: str = field(
128 default_factory=lambda: str((PROJDIR / "dataflow_agent" / "toolkits" / "p2vtool" / "red.png").resolve())
129 )
130
131
132# ==================== Paper2Video 生成 State ======================

Callers 10

_state_from_snapshotFunction · 0.90
run_paper2video_workflowFunction · 0.90
_state_from_snapshotFunction · 0.90
_run_generate_subtitleFunction · 0.90
_run_generate_videoFunction · 0.90
wf_paper2video.pyFile · 0.90
_state_from_snapshotFunction · 0.90
run_paper_to_video_apiFunction · 0.90

Calls 1

fieldFunction · 0.85

Tested by

no test coverage detected