Ryan commited on
Commit
d7d4654
·
1 Parent(s): 062a93f
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -986,7 +986,7 @@ def create_app():
986
  """Update summary dropdown options based on user log state"""
987
  choices = ["YOUR DATASET RESULTS"]
988
  choices.extend([f for f in os.listdir("dataset") if f.startswith("summary-") and f.endswith(".txt")])
989
- return gr.Dropdown.update(choices=choices, value="YOUR DATASET RESULTS")
990
 
991
  # Connect the load button to the function
992
  load_summary_btn.click(
@@ -1203,7 +1203,8 @@ def create_app():
1203
  status_message
1204
  ]
1205
  )
1206
-
 
1207
  app.load(
1208
  fn=lambda log: (
1209
  update_summary_dropdown(log),
@@ -1212,6 +1213,7 @@ def create_app():
1212
  inputs=[user_analysis_log],
1213
  outputs=[summary_dropdown, summary_content, summary_status]
1214
  )
 
1215
 
1216
  return app
1217
 
 
986
  """Update summary dropdown options based on user log state"""
987
  choices = ["YOUR DATASET RESULTS"]
988
  choices.extend([f for f in os.listdir("dataset") if f.startswith("summary-") and f.endswith(".txt")])
989
+ return gr.update(choices=choices, value="YOUR DATASET RESULTS")
990
 
991
  # Connect the load button to the function
992
  load_summary_btn.click(
 
1203
  status_message
1204
  ]
1205
  )
1206
+
1207
+ '''
1208
  app.load(
1209
  fn=lambda log: (
1210
  update_summary_dropdown(log),
 
1213
  inputs=[user_analysis_log],
1214
  outputs=[summary_dropdown, summary_content, summary_status]
1215
  )
1216
+ '''
1217
 
1218
  return app
1219