osanseviero commited on
Commit
61fb8e0
1 Parent(s): e7d15c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -51,7 +51,10 @@ def inference(prompt):
51
  go.Scatter3d(
52
  x=pc.coords[:,0], y=pc.coords[:,1], z=pc.coords[:,2],
53
  mode='markers',
54
- marker=dict(size=1, color=colors)
 
 
 
55
  )
56
  ],
57
  layout=dict(
@@ -60,7 +63,7 @@ def inference(prompt):
60
  yaxis=dict(visible=False),
61
  zaxis=dict(visible=False)
62
  )
63
- )
64
  )
65
  return fig
66
 
 
51
  go.Scatter3d(
52
  x=pc.coords[:,0], y=pc.coords[:,1], z=pc.coords[:,2],
53
  mode='markers',
54
+ marker=dict(
55
+ size=2,
56
+ color=['rgb({},{},{})'.format(r,g,b) for r,g,b in zip(pc.channels["R"], pc.channels["G"], pc.channels["B"])],
57
+ )
58
  )
59
  ],
60
  layout=dict(
 
63
  yaxis=dict(visible=False),
64
  zaxis=dict(visible=False)
65
  )
66
+ ),
67
  )
68
  return fig
69