Faice_text2face / test /test_api.py
Ngene787's picture
feat: add test
592a5b4
raw
history blame contribute delete
557 Bytes
# -*- 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)