dcr / inspect_alts.py
Desarrollo33's picture
feat: add trellis integration with robust fallback
4caf6af
raw
history blame contribute delete
708 Bytes
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}")