Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,15 @@ def show_f(model_id,d_app,token):
|
|
| 32 |
file_j.close()
|
| 33 |
file_b = open('tmp_j','r')
|
| 34 |
r_file = file_b.readlines()
|
|
|
|
| 35 |
for line in r_file:
|
| 36 |
if "'id':" in line:
|
| 37 |
line = line.split(":",1)[1]
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
print(f"n_{line}")
|
|
|
|
| 40 |
|
| 41 |
def load_space(model_id,d_app):
|
| 42 |
uid = uuid.uuid4()
|
|
|
|
| 32 |
file_j.close()
|
| 33 |
file_b = open('tmp_j','r')
|
| 34 |
r_file = file_b.readlines()
|
| 35 |
+
spaces=[]
|
| 36 |
for line in r_file:
|
| 37 |
if "'id':" in line:
|
| 38 |
line = line.split(":",1)[1]
|
| 39 |
+
line = line.split("/",1)[1]
|
| 40 |
+
line = line.replace("'","").replace(",","")
|
| 41 |
+
spaces.append(line)
|
| 42 |
print(f"n_{line}")
|
| 43 |
+
return(spaces)
|
| 44 |
|
| 45 |
def load_space(model_id,d_app):
|
| 46 |
uid = uuid.uuid4()
|