| from gradio_client import Client | |
| import json | |
| def check_api(): | |
| try: | |
| client = Client("ianpan/screening-mammography") | |
| print("API Information:") | |
| print(client.view_api(return_format="json")) | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| if __name__ == "__main__": | |
| check_api() | |