File size: 310 Bytes
1149617
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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);