Spaces:
Build error
Build error
aswin-raghavan commited on
Commit ·
2d1c9e3
1
Parent(s): 27e7a4c
empty row issue in gradio and df
Browse files
app.py
CHANGED
|
@@ -37,6 +37,10 @@ def update_table(img, img_name, df, state, label, exemplars_state, lut_state):
|
|
| 37 |
print('new', new_df)
|
| 38 |
print('old', df)
|
| 39 |
df = pd.concat([df, new_df])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
state.pop()
|
| 41 |
t = state[-10:]
|
| 42 |
random.shuffle(t)
|
|
|
|
| 37 |
print('new', new_df)
|
| 38 |
print('old', df)
|
| 39 |
df = pd.concat([df, new_df])
|
| 40 |
+
print('new', df)
|
| 41 |
+
filt = df["image_name"] != ""
|
| 42 |
+
df = df[filt]
|
| 43 |
+
print('new', df)
|
| 44 |
state.pop()
|
| 45 |
t = state[-10:]
|
| 46 |
random.shuffle(t)
|