{ "cells": [ { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Loaded as API: https://2828b672d27e456dd7.gradio.live/ ✔\n", "Hello Hello!!!\n" ] } ], "source": [ "from gradio_client import Client\n", "\n", "client = Client(\"https://2828b672d27e456dd7.gradio.live/\")\n", "result = client.predict(\n", "\t\t\"Hello!!\",\t# str in 'name' Textbox component\n", "\t\tapi_name=\"/predict\"\n", ")\n", "print(result)" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.6" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "419a65852de1f58880324b5aff51f51597ecaf04920a22094296ff3f23de06d9" } } }, "nbformat": 4, "nbformat_minor": 2 }