AkshitShubham's picture
Upload folder using huggingface_hub
4712303 verified
raw
history blame
No virus
419 Bytes
import requests
def checkFlare(flareUrl="http://localhost:8191/v1"):
url = f"{flareUrl}"
headers = {"Content-Type": "application/json"}
data = {
"cmd": "request.get",
"url": "http://www.google.com/",
"maxTimeout": 60000
}
try:
response = requests.post(url, headers=headers, json=data)
return response.ok
except Exception as e:
return False