import gradio as gr import requests import json from gradio_client import Client client = Client("artificialguybr/RealVisXL-Free-DEMO") result = client.predict( prompt="Hello!!", negative_prompt="", seed=0, custom_width=896, custom_height=1152, guidance_scale=7, num_inference_steps=28, sampler="DPM++ 2M SDE Karras", aspect_ratio_selector="1024 x 1024", use_upscaler=False, upscaler_strength=0.55, upscale_by=1.5, api_name="/run" ) print(result) app.launch(show_api=False, share=False, error=True)