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

Class Paper2VideoState

dataflow_agent/state.py:134–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132# ==================== Paper2Video 生成 State ======================
133@dataclass
134class Paper2VideoState(MainState):
135 # 重写 request
136 request: Paper2VideoRequest = field(default_factory=Paper2VideoRequest)
137
138 # paper2video 特有字段
139 beamer_code_path: str = ""
140 is_beamer_wrong: bool = False
141 is_beamer_warning: bool = False
142 code_debug_result: str = ""
143 ppt_path: str = ""
144 img_size_debug: bool = True
145 result_path: str = ""
146
147 # 生成音频的语言
148 slide_timesteps_path: str = ""
149
150 # 生成字幕 + cursor的位置信息
151 slide_img_dir: str = ""
152 subtitle_and_cursor: List[str] = field(default_factory=list)
153 subtitle_and_cursor_path: str = ""
154 # 临时的字段,不用保存它
155 tmp_sentence: str = ""
156
157 # 生成的音频路径
158 speech_save_dir: str = ""
159 # 生成的cursor路径
160 cursor_save_path: str = ""
161 # 生成的talking video路径
162 talking_video_save_dir: str = ""
163
164 # 用来返回给前端的脚本信息
165 script_pages: List[Dict[str, Any]] = field(default_factory=list)
166 # 生成的视频路径
167 video_path: str = ""
168
169
170

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