MCPcopy Create free account
hub / github.com/Holasyb918/HeyGem-Linux-Python-Hack / main

Function main

run.py:172–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171
172def main():
173 opt = get_args()
174 if not os.path.exists(opt.audio_path):
175 audio_url = "example/audio.wav"
176 else:
177 audio_url = opt.audio_path
178
179 if not os.path.exists(opt.video_path):
180 video_url = "example/video.mp4"
181 else:
182 video_url = opt.video_path
183 sys.argv = [sys.argv[0]]
184 task = service.trans_dh_service.TransDhTask()
185 time.sleep(10) # somehow, this works...
186
187 code = "1004"
188 task.work(audio_url, video_url, code, 0, 0, 0, 0)
189
190
191if __name__ == "__main__":

Callers 1

run.pyFile · 0.85

Calls 1

get_argsFunction · 0.85

Tested by

no test coverage detected