Spaces:
Sleeping
Sleeping
| from gradio_client import Client | |
| import sys | |
| # Inspection for Trellis | |
| try: | |
| with open('api_trellis.txt', 'w', encoding='utf-8') as f: | |
| sys.stdout = f | |
| client = Client("JeffreyXiang/TRELLIS") | |
| client.view_api() | |
| sys.stdout = sys.__stdout__ | |
| print("TRELLIS info saved.") | |
| except Exception as e: | |
| print(f"TRELLIS failed: {e}") | |
| # Inspection for Stability-AI/TripoSR (older but reliable?) | |
| try: | |
| with open('api_tripo.txt', 'w', encoding='utf-8') as f: | |
| sys.stdout = f | |
| client = Client("stabilityai/TripoSR") | |
| client.view_api() | |
| sys.stdout = sys.__stdout__ | |
| print("TripoSR info saved.") | |
| except Exception as e: | |
| print(f"TripoSR failed: {e}") | |