Spaces:
Build error
Build error
Upload app_hg.py with huggingface_hub
Browse files
app_hg.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
-
# Open Source Model Licensed under the Apache License Version 2.0
|
2 |
-
#
|
|
|
|
|
3 |
|
4 |
# Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved.
|
5 |
# The below software and/or models in this distribution may have been
|
@@ -21,11 +23,12 @@
|
|
21 |
# by Tencent in accordance with TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT.
|
22 |
import spaces
|
23 |
import os
|
24 |
-
os.environ['CUDA_HOME'] = '/usr/local/cuda'
|
25 |
import warnings
|
26 |
import argparse
|
27 |
import gradio as gr
|
28 |
from glob import glob
|
|
|
29 |
import shutil
|
30 |
import torch
|
31 |
import numpy as np
|
@@ -305,7 +308,7 @@ with gr.Blocks() as demo:
|
|
305 |
|
306 |
with gr.Row():
|
307 |
gr.Markdown("""
|
308 |
-
We recommend
|
309 |
Limited by gradio, Obj file here only be shown as vertex shading, but Glb can be texture shading.
|
310 |
""")
|
311 |
|
|
|
1 |
+
# Open Source Model Licensed under the Apache License Version 2.0
|
2 |
+
# and Other Licenses of the Third-Party Components therein:
|
3 |
+
# The below Model in this distribution may have been modified by THL A29 Limited
|
4 |
+
# ("Tencent Modifications"). All Tencent Modifications are Copyright (C) 2024 THL A29 Limited.
|
5 |
|
6 |
# Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved.
|
7 |
# The below software and/or models in this distribution may have been
|
|
|
23 |
# by Tencent in accordance with TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT.
|
24 |
import spaces
|
25 |
import os
|
26 |
+
os.environ['CUDA_HOME'] = '/usr/local/cuda-11*'
|
27 |
import warnings
|
28 |
import argparse
|
29 |
import gradio as gr
|
30 |
from glob import glob
|
31 |
+
print(glob("/usr/local/cuda*"))
|
32 |
import shutil
|
33 |
import torch
|
34 |
import numpy as np
|
|
|
308 |
|
309 |
with gr.Row():
|
310 |
gr.Markdown("""
|
311 |
+
We recommend download and open Glb using 3D software, such as Blender, MeshLab, etc.
|
312 |
Limited by gradio, Obj file here only be shown as vertex shading, but Glb can be texture shading.
|
313 |
""")
|
314 |
|