File size: 457 Bytes
b585c7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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"))
|