docker-captioner / grapi.py
Baptiste Canton
initial commit
2056905
raw
history blame
256 Bytes
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())