Spaces:
Sleeping
Sleeping
| # -*- 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) | |