Spaces:
Sleeping
Sleeping
chore: test gradio
Browse files
app.py
CHANGED
@@ -274,7 +274,7 @@ with gr.Blocks() as demo:
|
|
274 |
# interactive=False # 这样用户就可以与模型进行交互
|
275 |
# )
|
276 |
model_output = gr.Model3D(
|
277 |
-
clear_color=
|
278 |
label="模型可视化",
|
279 |
scale=1,
|
280 |
camera_position=(0, 0, 2), # 将设置初始摄像机位置,使模型居中
|
@@ -304,7 +304,7 @@ with gr.Blocks() as demo:
|
|
304 |
|
305 |
# 最后绑定事件(确保所有输出组件已声明)
|
306 |
def clear_outputs():
|
307 |
-
return [None
|
308 |
|
309 |
img_input.change(
|
310 |
fn=clear_outputs,
|
|
|
274 |
# interactive=False # 这样用户就可以与模型进行交互
|
275 |
# )
|
276 |
model_output = gr.Model3D(
|
277 |
+
clear_color=(0.0, 0.0, 0.0, 0.0), # 可调整背景颜色,以获得更好的对比度
|
278 |
label="模型可视化",
|
279 |
scale=1,
|
280 |
camera_position=(0, 0, 2), # 将设置初始摄像机位置,使模型居中
|
|
|
304 |
|
305 |
# 最后绑定事件(确保所有输出组件已声明)
|
306 |
def clear_outputs():
|
307 |
+
return [None, None, None, None] # 对应 model_output, video_output, obj_file_output, video_file_output
|
308 |
|
309 |
img_input.change(
|
310 |
fn=clear_outputs,
|