Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,21 +3,9 @@
|
|
| 3 |
|
| 4 |
# lone github repro & add to sys paths
|
| 5 |
import gradio as gr
|
| 6 |
-
|
| 7 |
-
import time
|
| 8 |
import os
|
| 9 |
-
|
| 10 |
-
#!rm -rf RECODE_speckle_utils
|
| 11 |
-
#!git clone https://github.com/SerjoschDuering/RECODE_speckle_utils
|
| 12 |
-
#sys.path.append('/content/RECODE_speckle_utils')
|
| 13 |
-
|
| 14 |
-
# import from repro
|
| 15 |
-
"""
|
| 16 |
-
import speckle_utils
|
| 17 |
-
import data_utils
|
| 18 |
-
import plots_utils
|
| 19 |
-
import color_maps
|
| 20 |
-
"""
|
| 21 |
import requests
|
| 22 |
|
| 23 |
from specklepy.api.client import SpeckleClient
|
|
@@ -25,9 +13,9 @@ from specklepy.api.credentials import get_default_account, get_local_accounts
|
|
| 25 |
from specklepy.transports.server import ServerTransport
|
| 26 |
from specklepy.api import operations
|
| 27 |
from specklepy.objects.geometry import Polyline, Point
|
| 28 |
-
import specklepy
|
| 29 |
|
| 30 |
-
|
|
|
|
| 31 |
import requests
|
| 32 |
import datetime
|
| 33 |
import json
|
|
@@ -48,6 +36,7 @@ def extract_branch_info(stream_id, server_url=None, token=None):
|
|
| 48 |
branch_info = []
|
| 49 |
|
| 50 |
for branch in branches:
|
|
|
|
| 51 |
branch_data = {
|
| 52 |
"Name": branch.name,
|
| 53 |
"description": branch.description,
|
|
|
|
| 3 |
|
| 4 |
# lone github repro & add to sys paths
|
| 5 |
import gradio as gr
|
| 6 |
+
|
|
|
|
| 7 |
import os
|
| 8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
import requests
|
| 10 |
|
| 11 |
from specklepy.api.client import SpeckleClient
|
|
|
|
| 13 |
from specklepy.transports.server import ServerTransport
|
| 14 |
from specklepy.api import operations
|
| 15 |
from specklepy.objects.geometry import Polyline, Point
|
|
|
|
| 16 |
|
| 17 |
+
|
| 18 |
+
|
| 19 |
import requests
|
| 20 |
import datetime
|
| 21 |
import json
|
|
|
|
| 36 |
branch_info = []
|
| 37 |
|
| 38 |
for branch in branches:
|
| 39 |
+
print (branch.name)
|
| 40 |
branch_data = {
|
| 41 |
"Name": branch.name,
|
| 42 |
"description": branch.description,
|