Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,14 +79,14 @@ sample_data = {
|
|
| 79 |
]
|
| 80 |
}
|
| 81 |
|
| 82 |
-
response = requests.post("https://ldhldh-api-for-unity.hf.space/run/predict_7", json={
|
| 83 |
-
"data": [
|
| 84 |
-
]}).json()
|
| 85 |
-
sample_data = response["data"][0]
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
-
user_num = len(sample_data['gpus'].items()
|
| 90 |
|
| 91 |
total_gpu = sample_data['total']['total']
|
| 92 |
used_gpu = sample_data['total']['used']
|
|
|
|
| 79 |
]
|
| 80 |
}
|
| 81 |
|
| 82 |
+
#response = requests.post("https://ldhldh-api-for-unity.hf.space/run/predict_7", json={
|
| 83 |
+
# "data": [
|
| 84 |
+
# ]}).json()
|
| 85 |
+
#sample_data = response["data"][0]
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
+
user_num = len(sample_data['gpus'].items())
|
| 90 |
|
| 91 |
total_gpu = sample_data['total']['total']
|
| 92 |
used_gpu = sample_data['total']['used']
|