Closed 385628424 closed 5 months ago
但是实际上换了vpn还是无法处理
AttributeError: 'NoneType' object has no attribute 'get'
Traceback:
File "D:\software\MoneyPrinterTurbo\lib\python\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "D:\software\MoneyPrinterTurbo\MoneyPrinterTurbo\webui\Main.py", line 437, in
2024-04-27 19:52:04.133 | SUCCESS | app.services.llm:generate_terms:296 - completed:
[]
moonshot大模型,没有返回正确的数据,请检查下moonshot的配置是否正确
2024-04-27 19:52:02.060 | INFO | main::431 - 开始生成视频
2024-04-27 19:52:02.061 | INFO | main::432 - {
"video_subject": "",
"video_language": "",
"video_script": "These keys are used to access your Azure AI services API. Do not share your keys. Store them securely– for example, using Azure Key Vault. We also recommend regenerating these keys regularly. Only one key is necessary to make an API call. When regenerating the first key, you can use the second key for continued access to the service.",
"video_terms": "",
"video_concat_mode": "random",
"video_aspect": "9:16",
"video_clip_duration": 3,
"video_count": 1,
"voice_name": "zh-CN-XiaoxiaoMultilingualNeural-V2-Female",
"voice_volume": 1.0,
"bgm_volume": 0.2,
"subtitle_enabled": true,
"font_name": "STHeitiLight.ttc",
"subtitle_position": "bottom",
"text_fore_color": "#FFFFFF",
"font_size": 60,
"stroke_color": "#000000",
"stroke_width": 1.5
}
2024-04-27 19:52:02.062 | INFO | app.services.task:start:30 - start task: 68826b02-740d-44a9-a0b5-8fe9e37de87e
2024-04-27 19:52:02.063 | INFO | app.services.task:start:39 -
generating video script
2024-04-27 19:52:02.063 | DEBUG | app.services.task:start:45 - video script: These keys are used to access your Azure AI services API. Do not share your keys. Store them securely– for example, using Azure Key Vault. We also recommend regenerating these keys regularly. Only one key is necessary to make an API call. When regenerating the first key, you can use the second key for continued access to the service.
2024-04-27 19:52:02.064 | INFO | app.services.task:start:49 -
generating video terms
2024-04-27 19:52:02.064 | INFO | app.services.llm:generate_terms:275 - subject:
2024-04-27 19:52:02.065 | DEBUG | app.services.llm:generate_terms:276 - prompt:
Role: Video Search Terms Generator
Goals:
Generate 5 search terms for stock videos, depending on the subject of a video.
Constrains:
Output Example:
["search term 1", "search term 2", "search term 3","search term 4","search term 5"]
Context:
Video Subject
Video Script
These keys are used to access your Azure AI services API. Do not share your keys. Store them securely– for example, using Azure Key Vault. We also recommend regenerating these keys regularly. Only one key is necessary to make an API call. When regenerating the first key, you can use the second key for continued access to the service.
Please note that you must use English for generating video search terms; Chinese is not accepted.
2024-04-27 19:52:02.065 | INFO | app.services.llm:_generate_response:16 - llm provider: moonshot
2024-04-27 19:52:04.133 | SUCCESS | app.services.llm:generate_terms:296 - completed: []
2024-04-27 19:52:04.136 | INFO | app.services.task:start:75 -
generating audio
2024-04-27 19:52:04.137 | INFO | app.services.voice:azure_tts_v2:1088 - start, voice name: zh-CN-XiaoxiaoMultilingualNeural, try: 1
2024-04-27 19:52:07.751 | SUCCESS | app.services.voice:azure_tts_v2:1128 - azure v2 speech synthesis succeeded: .\storage\tasks\68826b02-740d-44a9-a0b5-8fe9e37de87e\audio.mp3
2024-04-27 19:52:07.998 | INFO | app.services.task:start:93 -
generating subtitle, provider: edge
2024-04-27 19:52:08.001 | INFO | app.services.voice:create_subtitle:1232 - completed, subtitle file created: .\storage\tasks\68826b02-740d-44a9-a0b5-8fe9e37de87e\subtitle.srt, duration: 22.4
2024-04-27 19:52:08.002 | INFO | app.services.task:start:113 -
downloading videos
2024-04-27 19:52:08.002 | INFO | app.services.material:download_videos:148 - found total videos: 0, required duration: 23 seconds, found duration: 0.0 seconds
2024-04-27 19:52:08.003 | SUCCESS | app.services.material:download_videos:176 - downloaded 0 videos
2024-04-27 19:52:08.004 | ERROR | app.services.task:start:123 - failed to download videos, maybe the network is not available. if you are in China, please use a VPN.