pronunciation-scoring / test_api.py
Kartikeyssj2's picture
changes
293a343
raw
history blame
491 Bytes
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)