04:39 · Aug 21, 2024 · Wed 掉级了,开个贴,将硅基流动的文生图、图生图用起来https://linux.do/t/topic/182364发布时间:2024-08-21 04:38:20 LINUX DO 掉级了,开个贴,将硅基流动的文生图、图生图用起来 设置好环境变量 SILICONFLOW_API_KEY=sk- import base64 import io import json import os import dotenv import gradio as gr import requests import retrying from PIL import Image @retrying.retry(stop_max_attempt_number=2, wait_fixed=1000) def generate_image(image…