Spaces:
Sleeping
Sleeping
Factor Studios
commited on
Update websocket_storage.py
Browse files- websocket_storage.py +4 -9
websocket_storage.py
CHANGED
|
@@ -236,15 +236,10 @@ class WebSocketGPUStorage:
|
|
| 236 |
# Store state in memory
|
| 237 |
operation = {
|
| 238 |
'operation': 'state',
|
| 239 |
-
'type': '
|
| 240 |
-
'
|
| 241 |
-
'
|
| 242 |
-
'
|
| 243 |
-
'metadata': {
|
| 244 |
-
'component': component,
|
| 245 |
-
'state_id': state_id,
|
| 246 |
-
'storage_type': 'memory'
|
| 247 |
-
}
|
| 248 |
}
|
| 249 |
|
| 250 |
response = self._send_operation(operation)
|
|
|
|
| 236 |
# Store state in memory
|
| 237 |
operation = {
|
| 238 |
'operation': 'state',
|
| 239 |
+
'type': 'save',
|
| 240 |
+
'component': component,
|
| 241 |
+
'state_id': state_id,
|
| 242 |
+
'data': state_data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
|
| 245 |
response = self._send_operation(operation)
|