Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,17 +22,17 @@ with gr.Blocks() as app:
|
|
| 22 |
inputs=[length, width, thickness],
|
| 23 |
outputs=[die_output, visualization_output],
|
| 24 |
)
|
| 25 |
-
import gradio as gr
|
| 26 |
-
from design import generate_die, visualize_die
|
| 27 |
|
| 28 |
# Gradio UI for Progressive Die Design
|
| 29 |
-
with gr.Blocks() as app:
|
| 30 |
-
|
| 31 |
|
| 32 |
# User input fields for die dimensions
|
| 33 |
-
length = gr.Number(label="Length (mm)", value=100)
|
| 34 |
-
width = gr.Number(label="Width (mm)", value=50)
|
| 35 |
-
thickness = gr.Number(label="Thickness (mm)", value=10)
|
| 36 |
|
| 37 |
# Outputs: STEP file location and 3D visualization image
|
| 38 |
die_output = gr.Textbox(label="STEP File Location")
|
|
|
|
| 22 |
inputs=[length, width, thickness],
|
| 23 |
outputs=[die_output, visualization_output],
|
| 24 |
)
|
| 25 |
+
#import gradio as gr
|
| 26 |
+
#from design import generate_die, visualize_die
|
| 27 |
|
| 28 |
# Gradio UI for Progressive Die Design
|
| 29 |
+
#with gr.Blocks() as app:
|
| 30 |
+
# gr.Markdown("## Progressive Die Designer")
|
| 31 |
|
| 32 |
# User input fields for die dimensions
|
| 33 |
+
#length = gr.Number(label="Length (mm)", value=100)
|
| 34 |
+
#width = gr.Number(label="Width (mm)", value=50)
|
| 35 |
+
#thickness = gr.Number(label="Thickness (mm)", value=10)
|
| 36 |
|
| 37 |
# Outputs: STEP file location and 3D visualization image
|
| 38 |
die_output = gr.Textbox(label="STEP File Location")
|