chansung commited on
Commit
8c1f23d
·
1 Parent(s): 9fa8e7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ def update_compute_options(provider, region):
132
  headers = {
133
  "Content-Type": "application/json",
134
  }
135
- endpoint_url = f"https://api.endpoints.huggingface.cloud/provider/{provider}/region/{region}/compute"
136
  print(endpoint_url)
137
  response = requests.get(endpoint_url, headers=headers)
138
 
 
132
  headers = {
133
  "Content-Type": "application/json",
134
  }
135
+ endpoint_url = f"https://api.endpoints.huggingface.cloud/provider/{provider}/region/{region.split("/")[0]}/compute"
136
  print(endpoint_url)
137
  response = requests.get(endpoint_url, headers=headers)
138