| from h2ogpt_client._gradio_client import GradioClientWrapper | |
| class Server: | |
| """h2oGPT server.""" | |
| def __init__(self, client: GradioClientWrapper): | |
| self._client = client | |
| def address(self) -> str: | |
| """h2oGPT server address.""" | |
| return self._client._client.src | |
| def hash(self) -> str: | |
| """h2oGPT server system hash.""" | |
| return str(self._client.predict(api_name="/system_hash")) | |