Spaces:
Build error
Build error
File size: 491 Bytes
7dde9f0 293a343 7dde9f0 293a343 7dde9f0 293a343 882da5c 293a343 882da5c 293a343 882da5c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import requests
# URL of the Hugging Face Space endpoint
url = "https://huggingface.co/spaces/Kartikeyssj2/pronunciation-scoring/check_get"
# Sending the GET request to the endpoint
response = requests.get(url)
# Checking if the request was successful
if response.status_code == 200:
# Printing the JSON response
print("Success:", response.json())
else:
# Printing the error status code and text if the request failed
print("Failed:", response.status_code, response.text)
|