add readme
Browse files1404 unmodified lines140514061407140814091410141114121413141414151404 unmodified linesapp_py_path = os.path.join(src_dir, "streamlit_app.py")with open(app_py_path, "w") as f:f.write(code)# Prepare files to uploadfiles_to_upload = [(req_path, "requirements.txt"),(dockerfile_path, "Dockerfile"),(app_py_path, "src/streamlit_app.py"),]else:file_name = "app.py"1404 unmodified lines140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391404 unmodified linesapp_py_path = os.path.join(src_dir, "streamlit_app.py")with open(app_py_path, "w") as f:f.write(code)# 4. Write README.md in the required formatreadme_content = f'''---title: {space_name.strip()}emoji: 🚀colorFrom: redcolorTo: redsdk: dockerapp_port: 8501tags:- streamlitpinned: falseshort_description: Streamlit template space---# Welcome to Streamlit!Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community\nforums](https://discuss.streamlit.io).'''readme_path = os.path.join(temp_dir, "README.md")with open(readme_path, "w", encoding="utf-8") as f:f.write(readme_content)# Prepare files to uploadfiles_to_upload = [(req_path, "requirements.txt"),(dockerfile_path, "Dockerfile"),(app_py_path, "src/streamlit_app.py"),(readme_path, "README.md"),]else:file_name = "app.py"
app.py+24