{"named_endpoints":{"/get_weather":{"parameters":[{"label":"Enter City Name","parameter_name":"city","parameter_has_default":true,"parameter_default":"Faisalabad","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"}],"returns":[{"label":"value_15","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_16","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_18","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_19","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_21","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_22","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"value_24","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"},{"label":"Status","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"}],"api_visibility":"public","description":"","code_snippets":{"python":"from gradio_client import Client\n\nclient = Client(\"iamnisar/WEATHER-FORECAST\")\nresult = client.predict(\n\tcity=\"Faisalabad\",\n\tapi_name=\"/get_weather\",\n)\nprint(result)","javascript":"import { Client } from \"@gradio/client\";\n\nconst client = await Client.connect(\"iamnisar/WEATHER-FORECAST\");\nconst result = await client.predict(\"/get_weather\", {\n\t\tcity: \"Faisalabad\",\n});\n\nconsole.log(result.data);","bash":"curl -X POST http://localhost:7860/gradio_api/call/get_weather -s -H \"Content-Type: application/json\" -d '{\"data\": [\"Faisalabad\"]}' \\\n  | awk -F'\"' '{ print $4}' \\\n  | read EVENT_ID; curl -N http://localhost:7860/gradio_api/call/get_weather/$EVENT_ID"}}},"unnamed_endpoints":{}}