metaimagine / ai-pptx

😆 Generate PPT by LLM follow your template. 📢 Not only use llm to generate ppt, but also according to your favorite ppt template. Just you need to simply change the template parameters.
MIT License
41 stars 8 forks source link

No such file gradio_app.py, and run.py return No model pythoncom , #1

Open zhangkuo-zk opened 4 months ago

zhangkuo-zk commented 4 months ago

Mac os and python >=10

metaimagine commented 4 months ago

Mac os and python >=10

Oh, sry it's my oversight, and latest version launch file is run.py.

Pls input in terminal : $ python run.py

metaimagine commented 4 months ago

Maybe you cant use the local way to generate ppt. Because some requirement need windows, and I haven't tested whether Mac os works.

If you have a successful operation, pls do let me know :).

zhangkuo-zk commented 4 months ago

ok,我阅读源码,发现他是复制ppt,并将多余的ppt删除,这个操作我可以使用pptx包的功能来做,等我测试完成,会提交代码

metaimagine commented 4 months ago

okk,原本的pptx库有问题... 复制以后会有各种textbox或者img会在布局上乱套的情况,找了很多方案也没解决。

总之很折磨,所以我后面索性用了应用层的接口...你可以尝试下。欢迎pr~