Update app.py
Browse files
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
|
64 |
|
65 |
# Create Gradio interface
|
66 |
demo = gr.Interface(
|
67 |
fn=create_point_cloud,
|
68 |
inputs="text",
|
69 |
-
outputs=gr.
|
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 |
)
|