yanranxiaoxi commited on
Commit
14c9e63
·
verified ·
1 Parent(s): 28934c7

chore: test gradio

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -274,7 +274,7 @@ with gr.Blocks() as demo:
274
  # interactive=False # 这样用户就可以与模型进行交互
275
  # )
276
  model_output = gr.Model3D(
277
- clear_color=[0, 0, 0, 0], # 可调整背景颜色,以获得更好的对比度
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] * 4 # 对应 model_output, video_output, obj_file_output, video_file_output
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,