Spaces:
Running
Running
how to use it by api
#2
by
spark12x
- opened
how to use it by api
Hi @spark12x
API endpoints:
requirements.txt
pip install gradio_client
api_name: /run
from gradio_client import Client
client = Client("prithivMLmods/SDXL-LoRA")
result = client.predict(
prompt="A serene sunset over a calm ocean",
negative_prompt="blurry, low resolution, distorted, overly bright",
use_negative_prompt=True,
style_name="3840 x 2160",
lora_model="Realism (face/character)๐ฆ๐ป",
seed=1234,
width=1024,
height=1024,
guidance_scale=7.5,
randomize_seed=False,
api_name="/run"
print(result)