Spaces:
Runtime error
Runtime error
|
Download calling_script.md from tensorgirl/Restaurant-Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/tensorgirl/Restaurant-Chatbot/resolve/main/calling_script.md
- Command line
-
hf download hf://spaces/tensorgirl/Restaurant-Chatbot/calling_script.md
-
curl -L -o calling_script.md https://huggingface.co/spaces/tensorgirl/Restaurant-Chatbot/resolve/main/calling_script.md
455 Bytes
A newer version of the Gradio SDK is available: 6.30.0
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);