File size: 557 Bytes
592a5b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding: UTF-8 -*-
"""
@Time : 30/05/2025 10:18
@Author : xiaoguangliang
@File : test_api.py
@Project : Faice_text2face
"""
from gradio_client import Client

client = Client("https://e517e907a9e4213655.gradio.live/")

prompt = "Portrait of a young woman with long wavy hair, soft studio lighting, high contrast, 4k resolution, professional headshot"

result = client.predict(
    prompt=prompt,
    negative_prompt="",
    seed=0,
    randomize_seed=False,
    guidance_scale=7.5,
    num_inference_steps=100,
    api_name="/inference"
)
print(result)