jayebaku commited on
Commit
721a87a
·
verified ·
1 Parent(s): 8a64462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -62,9 +62,7 @@ def calculate_accuracy(flood_selections, fire_selections, none_selections, num_p
62
  return incorrect, correct, accuracy, data_df, gr.DownloadButton(label=f"Download CSV", value="output.csv", visible=True)
63
 
64
  def init_queries(history):
65
- history = history or []
66
-
67
- queries = [
68
  "What areas are being evacuated?",
69
  "What areas are predicted to be impacted?",
70
  "What areas are without power?",
@@ -87,8 +85,6 @@ def init_queries(history):
87
  "What area has the wildfire burned?",
88
  "Where have homes been damaged or destroyed?"]
89
 
90
- history.extend(queries)
91
-
92
  return gr.CheckboxGroup(choices=history), history
93
 
94
  with gr.Blocks() as demo:
 
62
  return incorrect, correct, accuracy, data_df, gr.DownloadButton(label=f"Download CSV", value="output.csv", visible=True)
63
 
64
  def init_queries(history):
65
+ history = [
 
 
66
  "What areas are being evacuated?",
67
  "What areas are predicted to be impacted?",
68
  "What areas are without power?",
 
85
  "What area has the wildfire burned?",
86
  "Where have homes been damaged or destroyed?"]
87
 
 
 
88
  return gr.CheckboxGroup(choices=history), history
89
 
90
  with gr.Blocks() as demo: