Skip to content

Commit

Permalink
fix HF Space deployment (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
pplonski committed Apr 21, 2023
1 parent be211f9 commit 122b0a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mercury/apps/nbworker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
server_url = sys.argv[4]


if os.environ.get("MERCURY_SERVER_URL") is None:
os.environ["MERCURY_SERVER_URL"] = server_url.replace("ws://", "http://").replace("wss://", "https://")

def signal_handler(signal, frame):
global stop_event
log.debug("\nBye bye!")
Expand Down

0 comments on commit 122b0a8

Please sign in to comment.