Spaces:
Sleeping
Sleeping
Download inspect_api.py from Desarrollo33/dcr: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/Desarrollo33/dcr/resolve/main/inspect_api.py
- Command line
-
hf download hf://spaces/Desarrollo33/dcr/inspect_api.py
-
curl -L -o inspect_api.py https://huggingface.co/spaces/Desarrollo33/dcr/resolve/main/inspect_api.py
285 Bytes
| 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") | |