Spaces:
Sleeping
Sleeping
supercat666
commited on
Commit
·
3bb6b2a
1
Parent(s):
12b10ac
fix plot
Browse files
app.py
CHANGED
@@ -503,8 +503,8 @@ elif selected_model == 'Cas12':
|
|
503 |
))
|
504 |
|
505 |
# Prediction visualization
|
506 |
-
for index, row in df.iterrows(): #
|
507 |
-
midpoint = (row['Start_Pos'] + row['End_Pos']) / 2
|
508 |
fig.add_trace(go.Scatter(
|
509 |
x=[midpoint],
|
510 |
y=[1],
|
|
|
503 |
))
|
504 |
|
505 |
# Prediction visualization
|
506 |
+
for index, row in df.iterrows(): # Iterate over DataFrame rows safely
|
507 |
+
midpoint = (row['Start_Pos'] + row['End_Pos']) / 2 # Ensure columns are correctly referenced
|
508 |
fig.add_trace(go.Scatter(
|
509 |
x=[midpoint],
|
510 |
y=[1],
|