iblfe's picture
Upload folder using huggingface_hub
b585c7f verified
raw
history blame
No virus
457 Bytes
from h2ogpt_client._gradio_client import GradioClientWrapper
class Server:
"""h2oGPT server."""
def __init__(self, client: GradioClientWrapper):
self._client = client
@property
def address(self) -> str:
"""h2oGPT server address."""
return self._client._client.src
@property
def hash(self) -> str:
"""h2oGPT server system hash."""
return str(self._client.predict(api_name="/system_hash"))