bluenevus commited on
Commit
d486f49
·
verified ·
1 Parent(s): da863e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -124,14 +124,13 @@ def process_file(file, instructions):
124
  return [error_image] * 3
125
 
126
  def data_analysis_dashboard():
127
- set_env(title="Data Analysis Dashboard")
128
  put_text("# Data Analysis Dashboard")
129
 
130
  with use_scope('form'):
131
  put_row([
132
  put_column([
133
- file_upload("Upload Dataset", accept=[".csv", ".xlsx"], name="file"),
134
- input("Analysis Instructions", type="text", placeholder="Describe the analysis you want...", name="instructions"),
135
  put_buttons(['Generate Insights'], onclick=[lambda: generate_insights()])
136
  ])
137
  ])
@@ -139,6 +138,7 @@ def data_analysis_dashboard():
139
  with use_scope('output'):
140
  for i in range(3):
141
  put_scope(f'visualization_{i+1}')
 
142
 
143
  def generate_insights():
144
  file = file_upload.files.get('file')
 
124
  return [error_image] * 3
125
 
126
  def data_analysis_dashboard():
 
127
  put_text("# Data Analysis Dashboard")
128
 
129
  with use_scope('form'):
130
  put_row([
131
  put_column([
132
+ put_text(file_upload("Upload Dataset", accept=[".csv", ".xlsx"], name="file")),
133
+ put_text(input("Analysis Instructions", type="text", placeholder="Describe the analysis you want...", name="instructions")),
134
  put_buttons(['Generate Insights'], onclick=[lambda: generate_insights()])
135
  ])
136
  ])
 
138
  with use_scope('output'):
139
  for i in range(3):
140
  put_scope(f'visualization_{i+1}')
141
+
142
 
143
  def generate_insights():
144
  file = file_upload.files.get('file')