Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
f9fbc16
1
Parent(s):
bd93fe5
- gradio-api/flux.ts +1 -0
gradio-api/flux.ts
CHANGED
|
@@ -41,6 +41,7 @@ export async function generateImage(params: OpenAI.ImageGenerateParams): Promise
|
|
| 41 |
const eventSource = new EventSource(`https://black-forest-labs-flux-1-dev.hf.space/gradio_api/queue/data?session_hash=${sessionHash}`);
|
| 42 |
|
| 43 |
eventSource.onmessage = (event) => {
|
|
|
|
| 44 |
const data = JSON.parse(event.data);
|
| 45 |
if (eventId !== data.event_id) return;
|
| 46 |
if (data.msg === 'process_completed') {
|
|
|
|
| 41 |
const eventSource = new EventSource(`https://black-forest-labs-flux-1-dev.hf.space/gradio_api/queue/data?session_hash=${sessionHash}`);
|
| 42 |
|
| 43 |
eventSource.onmessage = (event) => {
|
| 44 |
+
console.log(event.data);
|
| 45 |
const data = JSON.parse(event.data);
|
| 46 |
if (eventId !== data.event_id) return;
|
| 47 |
if (data.msg === 'process_completed') {
|