osanseviero commited on
Commit
60a2f29
1 Parent(s): 3cea0a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ def inference(prompt):
45
  samples = x
46
  pc = sampler.output_to_point_clouds(samples)[0]
47
  pc = sampler.output_to_point_clouds(samples)[0]
48
- fig = plot_point_cloud(pc, grid_size=3, fixed_bounds=((-0.75, -0.75, -0.75),(0.75, 0.75, 0.75)))
49
  return fig
50
 
51
- demo = gr.Interface(fn=inference, inputs="text", outputs=gr.Plot())
52
  demo.launch(debug=True)
 
45
  samples = x
46
  pc = sampler.output_to_point_clouds(samples)[0]
47
  pc = sampler.output_to_point_clouds(samples)[0]
48
+ fig = plot_point_cloud(pc, grid_size=2, fixed_bounds=((-0.75, -0.75, -0.75),(0.75, 0.75, 0.75)))
49
  return fig
50
 
51
+ demo = gr.Interface(fn=inference, inputs="text", outputs=gr.Plot(), examples=[["a red motorcycle"]])
52
  demo.launch(debug=True)