Код: Выделить всё
from gradio_client import Client
client = Client("ByteDance/SDXL-Lightning")
result = client.predict(
"astronaut riding a horse realistic",
"8-Step",
api_name="/generate_image"
)
print(result)
Код: Выделить всё
/tmp/gradio/ecfea853d51fb542f45865d58816480210e58ea3/image.png
Я пытался указать download_files = True в параметрах клиента, но не увидел разница.
Подробнее здесь: https://stackoverflow.com/questions/781 ... -on-python