LucaVivona commited on
Commit
470f3fc
โ€ข
1 Parent(s): 9717c78
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -56,9 +56,8 @@ stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streaml
56
  ```python
57
  def InterLauncher(name, interface, listen=2000, **kwargs):
58
  port= kwargs["port"] if "port" in kwargs else DOCKER_PORT.determinePort()
59
- print(listen)
60
  try:
61
- requests.post(f"http://{DOCKER_LOCAL_HOST}:{listen}/api/append/port", json={"port" : port, "host" : f'http://localhost:{port}', "file" : name, "name" : "Not Applicable", "kwargs" : kwargs})
62
  except Exception as e:
63
  print(f"**{bcolor.BOLD}{bcolor.FAIL}CONNECTION ERROR{bcolor.ENDC}** ๐Ÿ›The listening api is either not up or you choose the wrong port.๐Ÿ› \n {e}")
64
  return
 
56
  ```python
57
  def InterLauncher(name, interface, listen=2000, **kwargs):
58
  port= kwargs["port"] if "port" in kwargs else DOCKER_PORT.determinePort()
 
59
  try:
60
+ requests.post(f"http://{DOCKER_LOCAL_HOST}:{listen}/api/append/port", json={"port" : port, "host" : f'http://localhost:{port}', "file" : "Not Applicable", "name" : name, "kwargs" : kwargs})
61
  except Exception as e:
62
  print(f"**{bcolor.BOLD}{bcolor.FAIL}CONNECTION ERROR{bcolor.ENDC}** ๐Ÿ›The listening api is either not up or you choose the wrong port.๐Ÿ› \n {e}")
63
  return