Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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)]
|