Spaces:
Configuration error
Configuration error
LucaVivona
commited on
Commit
โข
470f3fc
1
Parent(s):
9717c78
clean
Browse files
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" :
|
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
|