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