Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,7 +202,8 @@ def main():
|
|
| 202 |
|
| 203 |
# Automatically generate requirements.txt content based on selected tasks
|
| 204 |
auto_requirements = generate_requirements(selected_tasks)
|
| 205 |
-
|
|
|
|
| 206 |
|
| 207 |
if st.button("Generate and Download"):
|
| 208 |
if app_title:
|
|
@@ -225,4 +226,4 @@ def main():
|
|
| 225 |
st.warning("Please enter a title for your Streamlit app.")
|
| 226 |
|
| 227 |
if __name__ == "__main__":
|
| 228 |
-
main()
|
|
|
|
| 202 |
|
| 203 |
# Automatically generate requirements.txt content based on selected tasks
|
| 204 |
auto_requirements = generate_requirements(selected_tasks)
|
| 205 |
+
# Here, the default requirements are always included, and additional requirements are added based on selected tasks
|
| 206 |
+
requirements = st.text_area("Enter requirements.txt content (optional, defaults included):", value=auto_requirements)
|
| 207 |
|
| 208 |
if st.button("Generate and Download"):
|
| 209 |
if app_title:
|
|
|
|
| 226 |
st.warning("Please enter a title for your Streamlit app.")
|
| 227 |
|
| 228 |
if __name__ == "__main__":
|
| 229 |
+
main()
|