frogleo commited on
Commit
fea3bfd
·
verified ·
1 Parent(s): b895b3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -242,6 +242,15 @@ MAX_SEED = 1e7
242
  title = "## AI 3D Model Generator"
243
  description = "Our Image-to-3D Generator transforms your 2D photos into stunning, AI generated 3D models—ready for games, AR/VR, or 3D printing. Our AI 3D Modeling is based on Hunyuan 2.0. Check more in [imgto3d.ai](https://www.imgto3d.ai)."
244
 
 
 
 
 
 
 
 
 
 
245
  with gr.Blocks().queue() as demo:
246
  gr.Markdown(title)
247
  gr.Markdown(description)
 
242
  title = "## AI 3D Model Generator"
243
  description = "Our Image-to-3D Generator transforms your 2D photos into stunning, AI generated 3D models—ready for games, AR/VR, or 3D printing. Our AI 3D Modeling is based on Hunyuan 2.0. Check more in [imgto3d.ai](https://www.imgto3d.ai)."
244
 
245
+ # 顶层哨兵函数,HF 扫描用
246
+ @spaces.GPU(duration=1)
247
+ def _gpu_check():
248
+ import torch
249
+ if torch.cuda.is_available():
250
+ return f"GPU ready: {torch.cuda.get_device_name(0)}"
251
+ else:
252
+ return "No GPU available"
253
+
254
  with gr.Blocks().queue() as demo:
255
  gr.Markdown(title)
256
  gr.Markdown(description)