XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update BlackForestLabs_Flux1KontextDev.py

56948ae3
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/hf_space/BlackForestLabs_Flux1KontextDev.py +1 -1
@@ -137,7 +137,7 @@ class BlackForestLabs_Flux1KontextDev(AsyncGeneratorProvider, ProviderModelMixin
137 137 elif chunk.get("msg") == "progress":
138 138 progress_data = chunk.get("progress_data", [])
139 139 progress_data = progress_data[0] if progress_data else {}
140 yield Reasoning(label="Processing image", status=f"{progress_data.get("index", 0)}/{progress_data.get("length", 0)}")
140 yield Reasoning(label="Processing image", status=f"{progress_data.get('index', 0)}/{progress_data.get('length', 0)}")
141 141 elif chunk.get("msg") == "process_completed":
142 142 url = chunk.get("output", {}).get("data", [{}])[0].get("url")
143 143 yield ImageResponse(url, prompt)