Spaces:
Paused
Paused
Commit
·
6fc2368
1
Parent(s):
fbf7e70
Fix SessionState field name in samples.py
Browse filesReplace deprecated tab1/2/3_complete fields with input_complete
to match simplified SessionState model.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ui/samples.py +2 -4
ui/samples.py
CHANGED
|
@@ -283,10 +283,8 @@ def load_sample(scenario_id: str) -> SessionState | None:
|
|
| 283 |
name=scenario.room_data["name"],
|
| 284 |
)
|
| 285 |
|
| 286 |
-
# Mark
|
| 287 |
-
session.
|
| 288 |
-
session.tab2_complete = len(images) > 0
|
| 289 |
-
session.tab3_complete = True
|
| 290 |
|
| 291 |
return session
|
| 292 |
|
|
|
|
| 283 |
name=scenario.room_data["name"],
|
| 284 |
)
|
| 285 |
|
| 286 |
+
# Mark input as complete since sample has all required data
|
| 287 |
+
session.input_complete = True
|
|
|
|
|
|
|
| 288 |
|
| 289 |
return session
|
| 290 |
|