Spaces:
Sleeping
Sleeping
supercat666
commited on
Commit
·
d0d59be
1
Parent(s):
3bb6b2a
fix plot
Browse files
app.py
CHANGED
@@ -504,7 +504,7 @@ elif selected_model == 'Cas12':
|
|
504 |
|
505 |
# Prediction visualization
|
506 |
for index, row in df.iterrows(): # Iterate over DataFrame rows safely
|
507 |
-
midpoint = (row['
|
508 |
fig.add_trace(go.Scatter(
|
509 |
x=[midpoint],
|
510 |
y=[1],
|
|
|
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],
|