File size: 333 Bytes
2ab0040
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from gradio_client import Client
import os

def test_api():
    print("Connecting to D-X-Lab/Face-Aging...")
    try:
        client = Client("D-X-Lab/Face-Aging")
        print("API Endpoints:")
        client.view_api()
    except Exception as e:
        print(f"Failed to connect: {e}")

if __name__ == "__main__":
    test_api()