Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,9 +68,9 @@ app.launch()
|
|
| 68 |
# fatigue_strength = gr.Number(label="Fatigue Strength (MPa)", value=150)
|
| 69 |
|
| 70 |
#safety_factor_output = gr.Textbox(label="Safety Factor")
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
lambda f, dw, dh, ms, tc, a, em, fs: stress_analysis(f, dw, dh, ms, tc, a, em, fs),
|
| 75 |
inputs=[force, die_width, die_height, material_strength, temperature_change, alpha, elastic_modulus, fatigue_strength],
|
| 76 |
outputs=[safety_factor_output, stress_chart],
|
|
|
|
| 68 |
# fatigue_strength = gr.Number(label="Fatigue Strength (MPa)", value=150)
|
| 69 |
|
| 70 |
#safety_factor_output = gr.Textbox(label="Safety Factor")
|
| 71 |
+
# stress_chart = gr.Plot()
|
| 72 |
+
# stress_button = gr.Button("Analyze Stress")
|
| 73 |
+
# stress_button.click(
|
| 74 |
lambda f, dw, dh, ms, tc, a, em, fs: stress_analysis(f, dw, dh, ms, tc, a, em, fs),
|
| 75 |
inputs=[force, die_width, die_height, material_strength, temperature_change, alpha, elastic_modulus, fatigue_strength],
|
| 76 |
outputs=[safety_factor_output, stress_chart],
|