import logging import os import sys from gradio_client import Client LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG") logging.basicConfig(level=LOG_LEVEL) logger = logging.getLogger(__name__) url = sys.argv[1] client = Client(url) print(client.view_api())