首页 > 解决方案 > Streamlit 应用部署:参考图片和文件

问题描述

我想部署我的 Streamlit 应用程序,但在引用文件时遇到问题。我的 .py 文件是这个:

https://github.com/mbescansa/Predicting-Taxi-Tips-in-NYC/blob/main/taxitippredictor.py

它包含对应用程序文件所在的同一存储库中的两个项目的引用:

https://github.com/mbescansa/Predicting-Taxi-Tips-in-NYC/blob/main/resources/taxi.jpg

https://github.com/mbescansa/Predicting-Taxi-Tips-in-NYC/blob/main/resources/app_data.csv

我已经尝试了几种方法让它工作,但到目前为止没有运气......引用这些项目的正确代码是什么?在我的本地实例上使用该应用程序我没有遇到任何问题。

非常感谢,

玛尔塔

标签: streamlit

解决方案


推荐阅读