yashm commited on
Commit
fc7e532
·
verified ·
1 Parent(s): 5945d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -17
app.py CHANGED
@@ -173,26 +173,10 @@ main() # Call the main function to run the app
173
  return code
174
 
175
 
176
- # Define required libraries for each predefined analysis task
177
- TASK_REQUIREMENTS = {
178
- "Basic Statistics": ["pandas", "streamlit"],
179
- "Correlation Heatmap": ["pandas", "streamlit", "seaborn"],
180
- "Histogram": ["pandas", "streamlit", "plotly"],
181
- "Box Plot": ["pandas", "streamlit", "plotly"],
182
- "Scatter Plot": ["pandas", "streamlit", "plotly"],
183
- "Line Plot": ["pandas", "streamlit", "plotly"],
184
- "Bar Chart": ["pandas", "streamlit", "plotly"],
185
- "Pair Plot": ["pandas", "streamlit", "seaborn"],
186
- "Distribution Plot": ["pandas", "streamlit", "seaborn"],
187
- "Count Plot": ["pandas", "streamlit", "seaborn"],
188
- "Pie Chart": ["pandas", "streamlit", "plotly"],
189
- "Area Plot": ["pandas", "streamlit", "plotly"],
190
- "Violin Plot": ["pandas", "streamlit", "plotly"]
191
- }
192
 
193
  def generate_requirements(selected_tasks):
194
  # Set to store all unique required libraries
195
- required_libraries = set()
196
 
197
  # Add libraries for each selected task
198
  for task in selected_tasks:
@@ -204,6 +188,7 @@ def generate_requirements(selected_tasks):
204
  # Format list into string to place in requirements.txt format
205
  return "\n".join(requirements_list)
206
 
 
207
  def main():
208
  st.title("Streamlit App Generator")
209
 
 
173
  return code
174
 
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  def generate_requirements(selected_tasks):
178
  # Set to store all unique required libraries
179
+ required_libraries = {"streamlit", "pandas", "matplotlib", "seaborn", "plotly"} # Default libraries are always included
180
 
181
  # Add libraries for each selected task
182
  for task in selected_tasks:
 
188
  # Format list into string to place in requirements.txt format
189
  return "\n".join(requirements_list)
190
 
191
+
192
  def main():
193
  st.title("Streamlit App Generator")
194