Spaces:
Running
Running
| 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); | |