Ayesha-Majeed commited on
Commit
b1b23a5
·
verified ·
1 Parent(s): a2deae7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,11 +32,11 @@ single_strain_value = 0 # training used LabelEncoder -> 0
32
 
33
  # ==================== New Integration ====================
34
  # Create a list of row indices for dropdown
35
- row_options = ["None, Enter manually"] + [str(i) for i in range(len(df))]
36
 
37
  # Function to autofill input fields from selected row
38
  def autofill_fields(row_index):
39
- if row_index == "None":
40
  # Reset all fields if 'None' selected UPDATE
41
  return (None, None, None, None, None, None, None, None, None, None, None)
42
  row = df.iloc[int(row_index)]
 
32
 
33
  # ==================== New Integration ====================
34
  # Create a list of row indices for dropdown
35
+ row_options = ["None, Enter Manually"] + [str(i) for i in range(len(df))]
36
 
37
  # Function to autofill input fields from selected row
38
  def autofill_fields(row_index):
39
+ if row_index == "None, Enter Manually":
40
  # Reset all fields if 'None' selected UPDATE
41
  return (None, None, None, None, None, None, None, None, None, None, None)
42
  row = df.iloc[int(row_index)]