rameshmoorthy commited on
Commit
bc3054f
1 Parent(s): 9669d6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -172,14 +172,14 @@ def generate_report(file, type):
172
  return [temp_file1.name ,temp_file3.name ,variable_table(df),dfviz,sd1]+reports+imgs
173
 
174
  def handle_click(file, sheet_name):
175
-
176
  results = generate_report(file, sheet_name)
177
  return results
178
 
179
  def update_sheets(file):
180
  sheet_names = pd.ExcelFile(file).sheet_names
181
 
182
-
183
  sheet_dropdown = gr.Dropdown(
184
  label="Select sheet", choices=[sheet_names], visible=True # Initially disabled
185
  )
@@ -201,7 +201,7 @@ with gr.Blocks() as cluster:
201
  gr.HTML(value="""<h2 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h2>""")
202
  out2=gr.File(label="Download CSV")
203
  sheet_dropdown = gr.Dropdown(
204
- label="Select sheet", choices=[], visible=False # Initially disabled
205
  )
206
 
207
 
 
172
  return [temp_file1.name ,temp_file3.name ,variable_table(df),dfviz,sd1]+reports+imgs
173
 
174
  def handle_click(file, sheet_name):
175
+ print('Handle click')
176
  results = generate_report(file, sheet_name)
177
  return results
178
 
179
  def update_sheets(file):
180
  sheet_names = pd.ExcelFile(file).sheet_names
181
 
182
+ print('Sheet updated')
183
  sheet_dropdown = gr.Dropdown(
184
  label="Select sheet", choices=[sheet_names], visible=True # Initially disabled
185
  )
 
201
  gr.HTML(value="""<h2 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h2>""")
202
  out2=gr.File(label="Download CSV")
203
  sheet_dropdown = gr.Dropdown(
204
+ label="Select sheet", choices=[], visible=True # Initially disabled
205
  )
206
 
207