web4 / app.py
Yussifweb3's picture
Update app.py
3fdcd1b verified
raw
history blame
371 Bytes
```
import { Client } from "@gradio/client";
const client = await Client.connect("black-forest-labs/FLUX.1-dev");
const result = await client.predict("/infer", {
prompt: "Hello!!",
seed: 0,
randomize_seed: true,
width: 256,
height: 256,
guidance_scale: 1,
num_inference_steps: 1,
});
console.log(result.data); usse this instead
```