Restaurant-Chatbot / calling_script.md
tensorgirl's picture
Create calling_script.md
4b9b1c4 verified

A newer version of the Gradio SDK is available: 5.17.1

Upgrade

Python

from gradio_client import Client

client = Client("tensorgirl/Restaurant-Chatbot") result = client.predict( "Hello!!", # str in 'Message' Textbox component api_name="/chat" ) print(result)

Javascript

import { client } from "@gradio/client";

const app = await client("tensorgirl/Restaurant-Chatbot"); const result = await app.predict("/chat", [ "Hello!!", // string in 'Message' Textbox component ]);

console.log(result.data);