mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update BlackForestLabs_Flux1KontextDev.py
This commit is contained in:
parent
f8f4a21faf
commit
56948ae387
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ class BlackForestLabs_Flux1KontextDev(AsyncGeneratorProvider, ProviderModelMixin
|
|||
elif chunk.get("msg") == "progress":
|
||||
progress_data = chunk.get("progress_data", [])
|
||||
progress_data = progress_data[0] if progress_data else {}
|
||||
yield Reasoning(label="Processing image", status=f"{progress_data.get("index", 0)}/{progress_data.get("length", 0)}")
|
||||
yield Reasoning(label="Processing image", status=f"{progress_data.get('index', 0)}/{progress_data.get('length', 0)}")
|
||||
elif chunk.get("msg") == "process_completed":
|
||||
url = chunk.get("output", {}).get("data", [{}])[0].get("url")
|
||||
yield ImageResponse(url, prompt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue