Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ def generate_streamlit_app_code(app_title, app_subtitle, side_panel_title, analy
|
|
| 137 |
# Here we make sure the analysis functions are correctly indented at the same level as the main function
|
| 138 |
analysis_functions_code = "\n ".join([PREDEFINED_ANALYSIS[task]['Code'].replace("\n", "\n ") for task in analysis_tasks])
|
| 139 |
# Here we ensure that calls to analysis functions are correctly indented within the main function
|
| 140 |
-
analysis_tasks_code = "\n
|
| 141 |
|
| 142 |
code = f"""import streamlit as st
|
| 143 |
import pandas as pd
|
|
|
|
| 137 |
# Here we make sure the analysis functions are correctly indented at the same level as the main function
|
| 138 |
analysis_functions_code = "\n ".join([PREDEFINED_ANALYSIS[task]['Code'].replace("\n", "\n ") for task in analysis_tasks])
|
| 139 |
# Here we ensure that calls to analysis functions are correctly indented within the main function
|
| 140 |
+
analysis_tasks_code = "\n".join([f" {PREDEFINED_ANALYSIS[task]['Function']}(df)" for task in analysis_tasks])
|
| 141 |
|
| 142 |
code = f"""import streamlit as st
|
| 143 |
import pandas as pd
|