Spaces:
Configuration error
Configuration error
Luca Vivona
commited on
Commit
·
1095d9a
1
Parent(s):
2d6a1ff
README.MD
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
|