User-2468 commited on
Commit
cffe600
·
verified ·
1 Parent(s): 18e7da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,13 +60,13 @@ def create_point_cloud(inp):
60
  fig = plot_point_cloud(pc, grid_size=3, fixed_bounds=((-0.75, -0.75, -0.75), (0.75, 0.75, 0.75)))
61
 
62
  # Convert Plotly figure to HTML for Gradio compatibility
63
- return fig.to_html(full_html=False)
64
 
65
  # Create Gradio interface
66
  demo = gr.Interface(
67
  fn=create_point_cloud,
68
  inputs="text",
69
- outputs=gr.HTML(), # Gradio expects HTML for Plotly visualizations
70
  title="Point-E Demo - Convert Text to 3D Point Clouds",
71
  description="Generate and visualize 3D point clouds from textual descriptions using OpenAI's Point-E framework."
72
  )
 
60
  fig = plot_point_cloud(pc, grid_size=3, fixed_bounds=((-0.75, -0.75, -0.75), (0.75, 0.75, 0.75)))
61
 
62
  # Convert Plotly figure to HTML for Gradio compatibility
63
+ return pc
64
 
65
  # Create Gradio interface
66
  demo = gr.Interface(
67
  fn=create_point_cloud,
68
  inputs="text",
69
+ outputs=gr.Plot(), # Gradio expects HTML for Plotly visualizations
70
  title="Point-E Demo - Convert Text to 3D Point Clouds",
71
  description="Generate and visualize 3D point clouds from textual descriptions using OpenAI's Point-E framework."
72
  )