Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
5.17.1
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);