Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,13 @@ def update_compute_options(provider, regeion):
|
|
137 |
|
138 |
for compute in response.json()['items']:
|
139 |
if compute['status'] == 'avaliable':
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
avalialbe_compute_options.append(
|
143 |
f"{compute['accelerator'].upper()} [{compute['instanceSize']}] 路 {type}"
|
|
|
137 |
|
138 |
for compute in response.json()['items']:
|
139 |
if compute['status'] == 'avaliable':
|
140 |
+
numAccelerators = compute['numAccelerators']
|
141 |
+
memoryGb = compute['memoryGb'].replace("Gi", "GB")
|
142 |
+
architecture = compute['architecture']
|
143 |
+
|
144 |
+
type = f"{numAccelerators}vCPU {memoryGb} 路 {architecture}"
|
145 |
+
if compute['accelerator'] == "cpu"
|
146 |
+
else f"{numAccelerators}x {architecture}"
|
147 |
|
148 |
avalialbe_compute_options.append(
|
149 |
f"{compute['accelerator'].upper()} [{compute['instanceSize']}] 路 {type}"
|