Mark Duppenthaler commited on
Commit
2dad3c7
1 Parent(s): bb3dc0d

Remove changes

Browse files
seamless_server/app_pubsub.py CHANGED
@@ -514,16 +514,17 @@ async def join_room(sid, client_id, room_id_from_client, config_dict):
514
  ):
515
  # If something goes wrong and the server gets stuck in a locked state the client can
516
  # force the server to remove the lock by passing the special name ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME
517
- # TEMP: remove escape hatch for demo
518
- # if (
519
- # server_lock is not None
520
- # and config_dict.get("lockServerName")
521
- # == ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME
522
- # ):
523
- # server_lock = None
524
- # logger.info(
525
- # f"🔓 Server lock has been reset by {client_id} using the escape hatch name {ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME}"
526
- # )
 
527
 
528
  # If the server is not locked, set a lock. If it's already locked to this client, update the lock object
529
  if server_lock is None or server_lock.get("client_id") == client_id:
 
514
  ):
515
  # If something goes wrong and the server gets stuck in a locked state the client can
516
  # force the server to remove the lock by passing the special name ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME
517
+ if (
518
+ server_lock is not None
519
+ and config_dict.get("lockServerName")
520
+ == ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME
521
+ # If we are locking the server completely we don't want someone to be able to unlock it
522
+ and not os.environ.get("LOCK_SERVER_COMPLETELY", "0") == "1"
523
+ ):
524
+ server_lock = None
525
+ logger.info(
526
+ f"🔓 Server lock has been reset by {client_id} using the escape hatch name {ESCAPE_HATCH_SERVER_LOCK_RELEASE_NAME}"
527
+ )
528
 
529
  # If the server is not locked, set a lock. If it's already locked to this client, update the lock object
530
  if server_lock is None or server_lock.get("client_id") == client_id:
streaming-react-app/src/StreamingInterface.tsx CHANGED
@@ -955,13 +955,6 @@ export default function StreamingInterface() {
955
  </Grid>
956
  </Stack>
957
 
958
- <Typography variant="body2" sx={{color: '#65676B'}}>
959
- Note: we don't recommend echo cancellation, as it may distort
960
- the input audio (dropping words/sentences) if there is output
961
- audio playing. Instead, you should use headphones if you'd like
962
- to listen to the output audio while speaking.
963
- </Typography>
964
-
965
  <Stack
966
  direction="row"
967
  spacing={2}
 
955
  </Grid>
956
  </Stack>
957
 
 
 
 
 
 
 
 
958
  <Stack
959
  direction="row"
960
  spacing={2}