Spaces:
Runtime error
Runtime error
Update SpaceFace.py
Browse files- SpaceFace.py +2 -1
SpaceFace.py
CHANGED
|
@@ -119,11 +119,12 @@ def thread(n):
|
|
| 119 |
|
| 120 |
|
| 121 |
def start_server(endpoints):
|
|
|
|
| 122 |
global conn
|
| 123 |
global endpoint
|
| 124 |
endpoints.insert(0, ConnectionEndpoint())
|
| 125 |
endpoint = endpoints
|
| 126 |
-
conn = session.connect_cloud(
|
| 127 |
threads = [threading.Thread(target=thread, args=(i+1,)) for i in range(10)]
|
| 128 |
for t in threads:
|
| 129 |
t.start()
|
|
|
|
| 119 |
|
| 120 |
|
| 121 |
def start_server(endpoints):
|
| 122 |
+
global projectid
|
| 123 |
global conn
|
| 124 |
global endpoint
|
| 125 |
endpoints.insert(0, ConnectionEndpoint())
|
| 126 |
endpoint = endpoints
|
| 127 |
+
conn = session.connect_cloud(projectid)
|
| 128 |
threads = [threading.Thread(target=thread, args=(i+1,)) for i in range(10)]
|
| 129 |
for t in threads:
|
| 130 |
t.start()
|