PotholeDetect / predict.js
TashiKP's picture
Create predict.js
1149617 verified
raw
history blame contribute delete
310 Bytes
import { Client } from "@gradio/client";
const response_0 = await fetch("undefined");
const exampleVideo = await response_0.blob();
const client = await Client.connect("TashiKP/PotholeDetect");
const result = await client.predict("/predict", {
video: exampleVideo,
});
console.log(result.data);