File size: 285 Bytes
f2dac59
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from gradio_client import Client
import sys

# Redirect stdout to file
with open('api_info.txt', 'w', encoding='utf-8') as f:
    sys.stdout = f
    client = Client("tencent/Hunyuan3D-2")
    client.view_api()
    sys.stdout = sys.__stdout__

print("API info written to api_info.txt")