Spaces:
Running
Running
File size: 388 Bytes
f42fa3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
"use server"
import { Client } from "@gradio/client"
export async function getPanoramaSDXL({
prompt
}: {
prompt: string
}): Promise<string> {
const app = await Client.connect("jbilcke-hf/panorama-api")
const result = await app.predict("/predict", [
process.env.MICRO_SERVICE_SECRET_TOKEN || "",
prompt,
undefined
])
console.log(`result:`, result)
return ""
} |